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 » Post-Kicker, -Byline & -Footer »

[SOLVED] Remove footer from specific posts


  #1  
Old Nov 24, 2009, 10:42 AM
jmdr
 
7 posts · Nov 2009
Is it possible to remove the post footer from specific posts on both multi- and single-post pages?

I use atahualpa for my photoblog and have customized it to include a link to purchase each image in the post footer. Occasionally, I write a post without a photo, and would like to remove that line (or the whole footer if need be) from those posts. These posts generally fall into a single category (or I could create a custom category or tag for these posts).

Thanks!
Jonathan
  #2  
Old Nov 24, 2009, 11:54 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you could put a php IF on the post footer area of 'The LOOP' so you would change
HTML Code:
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
to
\
HTML Code:
<?php if (!in_category('5')) { bfa_post_footer('<div class="post-footer">','</div>'); } ?>
where category '5' is the category id of the things you dont want. I'd create a category called 'Do not display footer'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 24, 2009, 09:33 PM
jmdr
 
7 posts · Nov 2009
Thanks Juggledad, that works almost perfect! Is there a way to exclude just a portion of the footer? (i.e. exclude my customization to the footers in the post/page info items on specific pages, rather than the excluding the whole footer)

'all the best
  #4  
Old Nov 25, 2009, 07:06 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You would have to go into the code to do that, hoiwever I have a suggestion. If you are not using it already, why not use the kicker or byline?

You could rearange 'THE LOOP' so the kicker comes just before the footer, then have the link for the ordering in it and use the php IF on it. Then you don't have to mess with the footer
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 25, 2009, 11:35 AM
jmdr
 
7 posts · Nov 2009
Of course--great suggestion, and I used the same php IF to exclude the kicker from specific posts. Thanks!

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] On certain page only posts from specific category RijnmondE4 Page & Category Menu Bars 3 Nov 17, 2009 04:13 PM
Make specific blog posts with smaller sidebars, leaving main posts intact. Chrism Header configuration & styling 3 Oct 15, 2009 06:22 PM
[SOLVED] How to remove the block next to link in a specific widget? d_random Sidebars & Widgets 2 Apr 30, 2009 02:24 PM
How To Remove the Footer Text? shinch1 Atahualpa 3 Wordpress theme 2 Mar 21, 2009 02:34 AM
Remove bytesforall.com from footer clothahump Atahualpa 3 Wordpress theme 0 Mar 9, 2009 04:35 PM


All times are GMT -6. The time now is 11:33 PM.


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