Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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, 09: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, 10:54 AM
juggledad's Avatar
juggledad
 
23,755 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, 08: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, 06:06 AM
juggledad's Avatar
juggledad
 
23,755 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, 10: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 03:13 PM
Make specific blog posts with smaller sidebars, leaving main posts intact. Chrism Header configuration & styling 3 Oct 15, 2009 05:22 PM
[SOLVED] How to remove the block next to link in a specific widget? d_random Sidebars & Widgets 2 Apr 30, 2009 01:24 PM
How To Remove the Footer Text? shinch1 Atahualpa 3 Wordpress theme 2 Mar 21, 2009 01:34 AM
Remove bytesforall.com from footer clothahump Atahualpa 3 Wordpress theme 0 Mar 9, 2009 03:35 PM


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


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