Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   How to have banner ONLY on Home Page??? (http://forum.bytesforall.com/showthread.php?t=19781)

wskdigital Mar 1, 2013 07:31 PM

How to have banner ONLY on Home Page???
 
I was wondering if anyone knew how to have an additional banner show up only on the home page.

I'm already using "%image" in the Configure Header Area for my logo. I need to add a banner below it that will only show up on the home page. Any suggestions?

Thanks.

lmilesw Mar 1, 2013 10:05 PM

Underneath %image wrap an image in a div with a class or ID and style as you wish. To have it only show on the home page add something like the following to CSS Inserts
HTML Code:

#secondimage {display: none;}
body.home #secondimage (display: block;)

The ID that I named secondimage could be anything that isn't in use on the site. What this does is hides the image everywhere and then the second line shows it on the home page. But double check that body.home is correct by looking at the page source and searching for body.

wskdigital Mar 2, 2013 12:16 AM

Thanks for the help. I'll try it tomorrow, it's late here. One question though. With the instructions you gave me, will the height be automatically regulated? For example: On the home page I will need an extra 200-300 pixels of height between the logo area and the website body, while on other pages and posts I do not.

lmilesw Mar 2, 2013 07:38 AM

I'm not quite sure what you mean. The instructions just explain how to put an image only on the home page. Do you want extra spacing above and below the image on the home page?


All times are GMT -6. The time now is 08:01 PM.

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