Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Display %image only on Homepage/Frontpage


  #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,176 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Dec 14, 2011, 11:03 PM
mk11sandiego
 
10 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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;}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Dec 22, 2011, 09:46 PM
mk11sandiego
 
10 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 10:00 AM.


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