Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] How the remove the footer from the main page only? (http://forum.bytesforall.com/showthread.php?t=5515)

myinfosecjob Jan 26, 2010 06:24 AM

[SOLVED] How the remove the footer from the main page only?
 
Hi there,

I would like to remove the post footers from the front page only. I've gone through several threads here but none of them asks for what i need.

Thanks!

A.

juggledad Jan 26, 2010 07:06 AM

put an if statement in the
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
which is in The LOOP to check if you are on teh front page - check the wordpress codex for the syntax

myinfosecjob Jan 26, 2010 07:10 AM

Thanks juggledad, but my coding skills are nil.
Can you be a bit more precise? :)

Thank you,
A.

juggledad Jan 26, 2010 12:38 PM

try this, replace the existing line with
HTML Code:

<?php if (!is_front_page()) { bfa_post_footer('<div class="post-footer">','</div>'); } ?>

pakacil Jan 28, 2010 11:02 PM

on Atahualpa Options :
→ Edit POST/PAGE INFO ITEMS
→ find FOOTER: Homepage
Leave blank to display no footer on posts on the homepage (front page)

juggledad Jan 29, 2010 07:03 AM

pakacil, GOOD point, sometinmes I forget the obvious :(

Caryn Inspired Raw Aug 17, 2010 09:36 AM

I would like to remove the footer on selected pages that I will be using as squeeze pages (I have a duplicate menu in the footer that I wish to remove).

Juggledad, would I use this code?

<?php if (!is_page(1) or !is_page(2) or !is_page(3)) { bfa_post_footer('<div class="post-footer">','</div>'); } ?>

...where 1, 2, and 3 are the page numbers where I do not want the footer to appear?

In what theme file do I make this replacement? Is it index.php that I would download, edit, and upload?

Thanks!
Caryn

lmilesw Aug 17, 2010 10:00 AM

You could probably use CSS such as the following Caryn. You would just change the page id to the page in question which you can determine by looking at the page source and searching for body class.
HTML Code:

body.page-id-777 td#footer {
display:none;
}


Caryn Inspired Raw Aug 17, 2010 11:53 AM

Quick and elegant solution, Larry! Thanks so much.

This is a great place for me to also recommend Larry to others as a programming partner. I engaged him as part of my work on http://Flow-Dynamix.com and he was fabulous, saving me tons of time and stress for a very reasonable investment. I continue to work with him and just come into the forum when I feel I can get a quick answer on something I'll need to do over and over.

...and no, there was no agreement that he'd answer my question here and I'd post this. He's just being generous to help me here for free rather than through our retainer hours.

Best,
Caryn


All times are GMT -6. The time now is 08:52 PM.

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