1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress footer twenty eleven theme

Discussion in 'Web Design' started by Kralj187, May 4, 2015.

  1. Kralj187

    Kralj187 Senior Member

    Joined:
    Jul 9, 2012
    Messages:
    1,067
    Likes Received:
    228
    Location:
    Internet
    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.
     
  2. potatoes

    potatoes Newbie

    Joined:
    Aug 6, 2011
    Messages:
    32
    Likes Received:
    3
    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.
     
  3. Lermontov

    Lermontov Registered Member

    Joined:
    Nov 19, 2014
    Messages:
    97
    Likes Received:
    18
    You should request a service of a freelancer on BHW, that way you safe time.
     
  4. Seven4

    Seven4 Power Member

    Joined:
    Nov 28, 2013
    Messages:
    684
    Likes Received:
    91
    just call the footer in index.php, or wrap the whole code in footer.php with somethis like

    if is_homepage() ...
     
  5. ADLUDUM

    ADLUDUM Jr. VIP Jr. VIP

    Joined:
    Mar 30, 2013
    Messages:
    153
    Likes Received:
    45
    Home Page:
    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 :)
     
  6. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    766
    Likes Received:
    275
    Location:
    PHP Scripting ;)
    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! :)
     
  7. Kralj187

    Kralj187 Senior Member

    Joined:
    Jul 9, 2012
    Messages:
    1,067
    Likes Received:
    228
    Location:
    Internet

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