Footer columns on homepage only

Discussion in 'Real Photography WordPress Theme' started by c_musseau, Jul 17, 2014.

  1. c_musseau

    c_musseau Guest

    Joined:
    May 21, 2014
    Messages:
    38
    Likes Received:
    0
    I want my the footer widget areas (first footer widget area, second footer widger area, etc) to only appear on the homepage...not any other type of page.

    http://dev.ellenwalkerdesign.com/

    Thanks!
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to header.php present in your theme directory and replace current code

    Code:
    <body class="loading"> 
    with code given below

    Code:
     <body background="<?php
            if (get_option('inkthemes_bodybg') != '') {
                echo get_option('inkthemes_bodybg');
            } else {
                ?>
                  <?php bloginfo('template_url'); ?>
              <?php } ?>" <?php body_class(); ?>>

    check image for reference

    2014-07-17_1246.png


    now,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    .footer {
    display: none;
    }
    body.home.blog.logged-in.admin-bar.customize-support .footer {
    display:initial;
    } 

    This will solve your issue.



    Thanks & Regards
    Gourav Shrivastava
     
  3. c_musseau

    c_musseau Guest

    Joined:
    May 21, 2014
    Messages:
    38
    Likes Received:
    0
    Thank-you.
    This works great for desktop computers but I have lost the four widgets when I view the homepage with a phone. See screenshot.
     

    Attached Files:

  4. c_musseau

    c_musseau Guest

    Joined:
    May 21, 2014
    Messages:
    38
    Likes Received:
    0
    **Update...this only works when I am logged into Wordpress. From any other non-logged in browser or phone, this does not work.
     
  5. c_musseau

    c_musseau Guest

    Joined:
    May 21, 2014
    Messages:
    38
    Likes Received:
    0
    Now the four footer widgets are completely gone at all times.
     
  6. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    undo the css code given above
    and

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    .footer {
    display: none;
    }
    body.home.blog .footer {
    display:initial;
    }  

    This will solve your issue.


    Thanks & Regards
    Gourav Shrivastava
     
  7. c_musseau

    c_musseau Guest

    Joined:
    May 21, 2014
    Messages:
    38
    Likes Received:
    0
    I want the four footer widgets on the homepage only.

    If I use this code...it is gone sitewide. If I delete this code, it is sitewide.

    .footer {
    display: none;
    }
     
  8. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Please use the code provided in last reply(#6), This will solve your issue.



    Thanks & Regards
    Gourav Shrivastava
     
  9. c_musseau

    c_musseau Guest

    Joined:
    May 21, 2014
    Messages:
    38
    Likes Received:
    0
    I have done this but now the 4 footer widget areas are not displaying on the homepage.

    Thanks, Craig
     
  10. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Please provide the following information listed below.

    Thread Link:
    Your Website URL:
    WordPress Username:
    WordPress Password:

    Send this information on our email at [email protected]
    I will check your issue and solve it.
    Thanks & Regards
    Gourav Shrivastava
     
  11. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Issue resolved, please check your website link.


    Thanks & Regards
    Gourav Shrivastava
     

Share This Page