Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] Display %image only on Homepage/Frontpage


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Sep 13, 2010, 06:11 PM
semperfidelis
 
5 posts · Aug 2010
[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;}
...but somehow i'm stuck.

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
  #2  
Old Sep 14, 2010, 03:07 PM
lmilesw's Avatar
lmilesw
 
10,054 posts · Jul 2009
Central New York State USA
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() ) { ?> 
%image
<?php } ?>   
To display different images to different pages one way is to use another conditional for the page id as such
HTML Code:
<?php if( is_page('33') ) { ?> 
<img src="http://path_to_image.jpg" />
<?php } ?>   
where the number in the parentheses is the id of the page in question.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Sep 15, 2010, 07:19 PM
semperfidelis
 
5 posts · Aug 2010
This is simply great!
Thanks a lot!
  #4  
Old Jan 4, 2011, 08:16 AM
bender57's Avatar
bender57
 
16 posts · Apr 2010
France
Hi!

I am annoyed as the code does not work with my configuration: (it only works on the BLOG page...)

PHP Code:
<?php if( is_home() ) { ?> 
%image
<?php ?>

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?

Last edited by bender57; Jan 4, 2011 at 08:22 AM.
  #5  
Old Jan 4, 2011, 10:16 AM
juggledad's Avatar
juggledad
 
21,986 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #6  
Old Dec 14, 2011, 11:03 PM
mk11sandiego
 
2 posts · Nov 2011
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??
  #7  
Old Dec 15, 2011, 04:32 AM
juggledad's Avatar
juggledad
 
21,986 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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;}
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #8  
Old Dec 22, 2011, 09:46 PM
mk11sandiego
 
2 posts · Nov 2011
Thank youuuuu!

Bookmarks

Tags
display, header image, hide, pages

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto: Header Image on (static) frontpage ONLY (not rest of blog) RuBeQK Header configuration & styling 1 Jul 28, 2010 01:24 PM
[SOLVED] Youtube, Vimeo won't display on homepage robpaterson23 Center area post/pages 2 Jun 4, 2010 08:45 PM
Display the posts within a catagory as my Homepage bloggersmarket Page & Category Menu Bars 1 Apr 15, 2010 06:46 AM
Frontpage slideshow positioning on frontpage amadeu Center area post/pages 0 Jan 15, 2010 10:16 AM
Homepage title display wtan001 Forum How-To 1 May 24, 2009 05:44 AM


All times are GMT -6. The time now is 04:30 PM.


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