• I wondering how I can tell the footer on my site to display only on my homepage (or other pages if I chose to add different ones)

    Basically on my homepage right now I have a few paragraphs of text and only want that to show on my homepage and not all my other pages. And I guess this could be the same for sidebars when I get them up.

    Does anybody know of any pages, or instructions to be able to do this. I’m going to guess I’ll need do something to the php?

    I appreciate your help.

    (http://www.duckweedaquaticcentral.com)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes. Check out the is_home() conditional statement.

    Something like this…

    <?php if(is_home()) {
    	SHOW FOOTER CODE  // Replace with actual footer code
    	} else {
    	DON'T SHOW FOOTER CODE  // Replace with whatever you like
    	}
    ?>
    Thread Starter studman0143

    (@studman0143)

    Thanks Josh!

    Yes sir. Post back and lemme know if you got it to work.

    Thread Starter studman0143

    (@studman0143)

    Sorry, does this go in my widget or home.php?

    You basically need to “wrap” your footer code with the above example. So, what ever your entire footer code is, needs to be inserted where I have “SHOW FOOTER CODE”.

    It is probably in your footer.php file?

    Thread Starter studman0143

    (@studman0143)

    Ugh, sorry I’m such a pain. So I have a footer-widgeted.php file. I am running a Genesis them fyi.
    I tried pasting it into one of the div tags and that didn’t work, so I tried creating my own div tag at the bottom of the text, that didn’t work.

    I’m quite new to this obviously, sorry.

    Hmm.. I’m not familiar with the theme.

    Each theme handles their file structures differently. But you should have a footer.php file somewhere.

    Thread Starter studman0143

    (@studman0143)

    Ok, i’ll figure it out and get back on when I have results.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Footer on select pages’ is closed to new replies.