WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove footer from posts/pages and keep it on home page only (9 posts)

  1. stargazer713
    Member
    Posted 1 year ago #

    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

  2. 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.

  3. stargazer713
    Member
    Posted 1 year ago #

    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.

  4. 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. ;)

  5. stargazer713
    Member
    Posted 1 year ago #

    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!

  6. stargazer713
    Member
    Posted 1 year ago #

    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.

  7. 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.

  8. stargazer713
    Member
    Posted 1 year ago #

    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!

  9. Glad to help. :)

Topic Closed

This topic has been closed to new replies.

About this Topic