[SOLVED] Display %image only on Homepage/Frontpage
Hello!
Is it possible to display the %image (header image) only on the homepage/frontpage of a website? I've been thinking about a css insert, like Code:
.home #menu2 {display:none;} Perhaps it's even possible to "connect" different headers to different page id's? Sorry for all the trouble, I'm greatful for any advice! Cheers As always: i'm sorry for my poor English |
You can use conditional for that If you only want to display header images on the home page you would use the following in ATO>Style & edit Header Area>Configure Header Area
HTML Code:
<?php if( is_home() ) { ?> HTML Code:
<?php if( is_page('33') ) { ?> |
This is simply great!
Thanks a lot! |
Hi!
I am annoyed as the code does not work with my configuration: :confused: (it only works on the BLOG page...) PHP Code:
My wordpress config: Static Page (in Reading) What I want to do: Show %image ONLY on frontpage. Can someone help me to solve my issue? |
the 'home' page in wordpress terminology refers to the 'blog' page no matter where it is. the landing page is called the 'front' page so you need to test for the front page instead of the home page.
Check out http://codex.wordpress.org/Conditional_Tags for the correct syntax |
I have a static front page and have inserted the following code in "configure header area" but still doesn't work.
<?php if( is_front_page() ) { ?> %image <?php } ?> the rotating images still appear on every page, but i only want that on the front page only.. Do you have any idea?? |
You can't use php in the options anymore due to WordPress restrictions. Try adding this to your CSS Inserts
HTML Code:
body.home #imagecontainer {display:none;} |
Thank youuuuu!
|
All times are GMT -6. The time now is 05:24 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.