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 » Center area post/pages »

[SOLVED] How to put banner only in single post page?


  #1  
Old Apr 6, 2011, 03:07 PM
Innocent's Avatar
Innocent
 
92 posts · Jan 2011
WP 3.4.2 Atahualpa 3.7.9
[SOLVED] How to put banner only in single post page?

Hi!

I've managed to put banner after every third post in main blog page.

I did it through ATO Style and edit center column and there I added

<?php if ( $bfa_ata['postcount'] == 3 ) { ?>
...banner code...
<?php } ?>

So, there it says that if I put something like <?php if ( is_front_page() AND $bfa_ata['postcount'] == 3 ) { ?> it will show only on FP.

And what would it be for single post page?

Thanks!
  #2  
Old Apr 6, 2011, 03:39 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you will need to use one of the other conditional tags. Take a look at this http://codex.wordpress.org/Conditional_Tags
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 6, 2011, 03:44 PM
Innocent's Avatar
Innocent
 
92 posts · Jan 2011
WP 3.4.2 Atahualpa 3.7.9
Wow, I made it! Thanks a lot juggledad!

Bookmarks

Tags
banner, center column, loop

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Post container style different for Home Page than single post page maurixx Center area post/pages 13 Jul 23, 2010 03:14 PM
Permalink in single post and single page anup Center area post/pages 0 Jul 15, 2010 09:46 AM
Archive page shows post box help, and single post on front page help boberang Atahualpa 3 Wordpress theme 0 Aug 7, 2009 09:26 AM
[SOLVED] Next post and previous post links on top of single post page error susieswe Atahualpa 3 Wordpress theme 2 Jul 15, 2009 02:58 PM
Banner over Single Post Title jay2009 Header configuration & styling 0 Mar 21, 2009 04:41 PM


All times are GMT -6. The time now is 12:12 AM.


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