Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Adding Static Content "Above the Loop" on home page (http://forum.bytesforall.com/showthread.php?t=9953)

dchrist21 Sep 29, 2010 10:59 AM

Adding Static Content "Above the Loop" on home page
 
I would like to add a small amount of static content above the post loop of my home page. I have already created a "page" but do not know what code to insert in the "Above the Loop" area in order to make this page appear. I'm guessing its simple, but I'm not a code guy.

-Thanks

www.intechen.com

lmilesw Sep 29, 2010 04:23 PM

The easiest way is to just put the content directly in the Content Above the Loop box with a conditional such as below. You could also just set an id for the div and style it in ATO>Add HTML/CSS Inserts>CSS Inserts
HTML Code:

<?php if( is_home() ) { ?>
<div style="font-weight:bold;font-size:32px;text-align:center">Centered Text above the loop</div>
<?php } ?>


dchrist21 Sep 30, 2010 02:31 PM

I hadn't though of it quite that way before...let me mess with it over the next few days and I'll let you know how it works out for me.

Thanks for the help.


All times are GMT -6. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.