Support » Themes and Templates » Remove footer from posts/pages and keep it on home page only

  • Resolved stargazer713

    (@stargazer713)


    Trying these codes but none of them working

    .is_post #footer {
    	display: none !important;
    }
    
    .is_page #footer {
    	display: none !important;
    }

    OR

    #footer {
    	display: none !important;
    }
    
    .is_home #footer {
    	display: block !important;
    }

    My site: http://0thmirageknight.com/

    Thanks in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Generically speaking, if you can better identify the CSS and apply it on pages/posts vs the home page then that ought to work.

    More specifically, that’s an impressive theme (the The Five Star Stories models are cool too). But for support you really want to consider signing up from the theme author.

    http://alienwp.com/support/

    It’s an (awesome, really well done, I’m a fan) free commercial theme and we don’t support those here.

    Thread Starter stargazer713

    (@stargazer713)

    Thanks Jan, nice to meet someone that appreciates FSS models.

    I’m actually using Minimatica on the home domain http://wordpress.org/extend/themes/minimatica not themes from Alienwp.com

    I didn’t know this place does not support free themes, although my question is more in general than regarding the theme.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m actually using Minimatica on the home domain http://wordpress.org/extend/themes/minimatica not themes from Alienwp.com

    Gotcha.

    Generally after you’ve created a child theme (edits to the parent can get lost on updates) the CSS you have posted above ought to have worked.

    I’ll poke at a child theme of Minimatica and see if I can reproduce some of what your seeing.

    P.S. The RG Aile Strike Gundam is pretty cool too. 😉

    Thread Starter stargazer713

    (@stargazer713)

    Haha thanks! Nice blog of yours too, I see familiar links in your blogrolls.

    I’ve now added text widget to the footer for testing..but yeah none of the aforementioned codes work.

    Thanks for your help!

    Thread Starter stargazer713

    (@stargazer713)

    Specifically, using the first method does not prevent footer from showing up in posts and pages.

    And using the second method prevents footer from displayed at all, which means the .is_ #footer code is probably not working for some reason.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    My (limited) CSS fails me I think but here goes nothing. 😉

    I’ve created a child theme in wp-content/themes/minimatica-child and have just this style.css file in it.

    /*
    Theme Name: Minimatica Child Theme
    Author: Self-Help WordPress User
    Template: minimatica
    */
    
    @import url("../minimatica/style.css");

    After the import I can hide the footer for the home page, single post, or a page.

    This CSS will hide the #footer on the home page only.

    .home #footer {
            display: none;
    }

    This will do it for a single post

    .single #footer {
            display: none;
    }

    And lastly for a page

    .page #footer {
            display: none;
    }

    If you look at the file minimatica/footer.php you can see the #footer clearly defined. But the wp_footer() is outside of that <footer id="footer"> so if a plugin is adding to the footer then this styling will be ignored. The CSS for that would need to be addressed separately.

    Thread Starter stargazer713

    (@stargazer713)

    Awesome it works! (except .page code doesn’t do it for me, pages still display footer, but that might be my http://wordpress.org/extend/plugins/pages-posts/ plugin messing with it. And I don’t have any important pages so that’s okay for now).

    I’ll mark it as solved, thanks for all the help Jan!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Glad to help. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove footer from posts/pages and keep it on home page only’ is closed to new replies.