Wordpress footer twenty eleven theme

Kralj187

Senior Member
Joined
Jul 9, 2012
Messages
1,098
Reaction score
244
hey guys


Never been to this section before in the past 3 years lol, but there is always a first time ;)

I need help with a wordpress site of a client. I need the footer only to be shown on the actual homepage. So I want it removed from single post, category, tags etc.

The wordpress site is using the Twenty Eleven Theme.
 
Use a page template for the home page and only put the footer in that. Then take it out of all the other theme pages.
 
You should request a service of a freelancer on BHW, that way you safe time.
 
just call the footer in index.php, or wrap the whole code in footer.php with somethis like

if is_homepage() ...
 
So those category, posts and such usually have a file of their own and on the bottom there is a wp_footer(). Remove that line :)
 
OP, just do this.

Add this line at the very start of footer.php from your theme edit.

Code:
if(is_home()) {

And at the very end of the footer.php, add this

Code:
}

So it should look like,

Code:
 if(!is_home()) {
//footer.php codes here
}

Buy me a beer! :)
 
OP, just do this.

Add this line at the very start of footer.php from your theme edit.

Code:
if(is_home()) {

And at the very end of the footer.php, add this

Code:
}

So it should look like,

Code:
 if(!is_home()) {
//footer.php codes here
}

Buy me a beer! :)


Sorry my mistake, I meant the Widget Footer Area Three to be shown only on the homepage, not the footer itself
 
Back
Top