Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #68878

    Chris R
    Participant

    Wordpress: 3.9.3
    Stack: Renew
    URL: http://www.refbumpreview.com

    I have a custom home page set up. I only want the footer to be shown on this page, but it also shows up on my ‘Blog’ page. How can I go about removing it? Changing the layout doesn’t seem to do anything.

    #69394

    Mrinal
    Member

    Hi Chris,

    To do so, add the following CSS codes via Customizer > Custom > CSS:

    
    .blog .x-colophon.top {
        display: none;
    }
    

    Hope this helps, Cheers!

    #69460

    Chris R
    Participant

    That worked great. Thank you. I have a follow up question, though. How can I do the same thing for the other pages? The ‘About’ and ‘Contact’ pages both have no footer at all, which is initially what I wanted, but now I’d like them to match the ‘Blog’ page, which has my footer minus the widgets.

    #69707

    Mrinal
    Member

    Hi Chris,

    You created About & Contact pages with Blank Template which doesn’t have Footer, so at first select a Page template for them which has Layout container | Header, Footer.

    Now delete previous CSS codes & add the following.

    .blog .x-colophon.top, .page-id-2 .x-colophon.top, .page-id-163 .x-colophon.top {
        display: none;
    }

    If you can’t do it yourself then share your website login info here as private reply.

    #69890

    Chris R
    Participant

    Ok, I’m sorry…I should’ve been more specific. So far, everything you’ve told me has worked. All the pages that I mentioned have the footer that I want, but now I’m noticing that when I go into a particular post…it has my footer widgets. Also, when I go into a category archive, it has my footer widgets. Is there any sort of all encompassing, clean sweep code to have the widgets turned off for every single page aside from my custom home page?

    #69904

    Christian
    Moderator

    Hey Chris,

    Please modify wp-footer.php located in wp-content\themes\x\framework\views\renew.

    Change the line

    <?php x_get_view( 'global', '_footer', 'widget-areas' ); ?>

    to

    <?php if ( is_home() ) { x_get_view( 'global', '_footer', 'widget-areas' ); } ?>

    What it’ll do is show the footer widget areas only in your home page. Or, use the conditional

    is_page( 42 ) instead of is_home() if you have a custom home page.

    Change 42 to the ID of your page.

    If you’re using a child theme, please copy the the modified file in the same directory in your child theme (e.g. wp-content\themes\x-child\framework\views\renew).

    Hope that helps. 🙂

    #70179

    Chris R
    Participant

    Okay, I can’t find it. :/

    Am I going to Appearance > Editor > Footer (footer.php)?

    #70254

    Kosher K
    Member

    Hi Chris,

    You probably have to do it in your server control panel or via FTP,

    The standard wordpress editor cannot edit files located in 2nd level directory of the theme.

    Or you may want to install wordpress editor plugin.

    Hope that helps.

    Cheers

    #70301

    Chris R
    Participant

    Phew *wipes forehead*

    That was tricky. Thank you guys so much.

    #70397

    Mrinal
    Member

    Hi Chris,

    You’re welcome, Thank you for the complement.

    Have a nice day, Cheers!

    #108488

    Chris R
    Participant
    This reply has been marked as private.
    #108576

    Christopher
    Moderator

    Hi there,

    Please modify wp-footer.php located in YOUR CHILD THEME -> framework -> views -> renew

    <?php if ( is_page( 429 ) ) { x_get_view( 'global', '_footer', 'widget-areas' ); } ?>

    Hope it helps.

    #109953

    Chris R
    Participant

    I’m not sure I understand. Maybe I’m remembering incorrectly, but I remember the issue being completely resolved without me having to go into my child theme. Truth be told, I’m completely baffled by the concept of child themes, so I doubt I ever did anything to it.

    What I’m finding now is that in the footer of individual posts, as well as the archives/categories, I’m getting those widgets again. The other pages (About, Blog, Contact, Podcast) all look how I want them to. The home page, being the only page I’d like my footer widgets to appear, looks how I want it to. Like I said, I remember the posts and archives being fine, but I must have tinkered with something and screwed it up.

    My apologies, but if there’s a way to do this without using a child theme, I’d very much prefer that. Thanks again for all your help, folks. 🙂

    #109996

    Cousett
    Member

    Try adding some CSS code under Appearance -> Customize -> Custom -> CSS

    body.single-post footer.x-colophon.top {
    display: none;
    }

    this should remove it from single posts.

    body.archive footer.x-colophon.top {
    display: none;
    }

    this should remove it from all archive pages.

    #110071

    Chris R
    Participant

    Awesome, it worked. Thanks so much.