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 »

Using is_front_page() in the ATO - Configure Header Area option?


  #1  
Old Dec 9, 2009, 05:33 AM
david y
 
16 posts · Dec 2009
Using is_front_page() in the ATO - Configure Header Area option?

I am trying to configure the header area differently based on whether it's the front page or not. Can I use the is_front_page() function here along with the %logo %bar1 %pages %image items on the ATO page?

i.e-

on the front page I want %bar1 %logo %bar1 %pages %image. On all others I want %bar1 %logo %bar1 %image %pages %bar2. Seems like it should work, but I'm a newbie and my coding isn't working right.

Thank you
  #2  
Old Dec 9, 2009, 09:26 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
exactly what did you code?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 9, 2009, 09:47 AM
david y
 
16 posts · Dec 2009
Well I tried this in the Configure Header Area -

<?php if ( is_front_page() ){%bar1 %bar1 %logo %bar1 %pages %bar1 %image};
else {%bar1 %bar1 %logo %bar1 %image %pages %bar1 }; ?>

and of course that didn't work. After further thinking I realized that this is probably not the right spot to be having code, but I don't know. Like I said, I'm all new to this. Any help is appreciated. Thank you
  #4  
Old Dec 9, 2009, 12:00 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
yeah, you can't do it that way. Try this
HTML Code:
<?php if ( is_front_page() ){ ?> %bar1 %bar1 %logo %bar1 %pages %bar1 %image <?php };
else { ?> %bar1 %bar1 %logo %bar1 %image %pages %bar1 <?php }; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 9, 2009, 12:20 PM
david y
 
16 posts · Dec 2009
juggledad -

I tried putting that in the HTML Inserts: Header and it didn't work for me. I tried putting it in the Configure Header Area and that didn't work for me.

Where should this code be placed? Thanks,
  #6  
Old Dec 9, 2009, 12:32 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
this should work, put it in 'Configure Header Area'
HTML Code:
<?php if ( is_front_page() ){ echo '%bar1 %bar1 %logo %bar1 %pages %bar1 %image'; }
else { echo' %bar1 %bar1 %logo %bar1 %image %pages %bar1'; }; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I want to configure my WordPress blog. Xarzu Installing & running WordPress 3 Oct 27, 2009 04:50 AM
Header image area dropping down over the first post area bushtool Header configuration & styling 2 Sep 16, 2009 12:17 PM
Configure Header Area not working for me... help! agrossman Header configuration & styling 3 Aug 23, 2009 07:15 AM
Configure home page cnhzcy14 Atahualpa 3 Wordpress theme 0 Mar 17, 2009 10:37 AM
Fatal error: Call to undefined function is_front_page() kyuen New Versions, & Updating 4 Mar 1, 2009 06:19 PM


All times are GMT -6. The time now is 05:21 PM.


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