WordPress.org

Ready to get started?Download WordPress

Forums

Hatch
[resolved] Removing footer from specific page? (7 posts)

  1. silico26
    Member
    Posted 1 year ago #

    Hi all. I'm looking to remove the footer from my static home page only. I would like the footer to appear on all the other pages as normal. This is my site here. Any ideas? Thanks

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    There are more complicated and maybe more elegant ways to do it -- but you can do it like this in the CSS code:

    body.home #footer {
       display: none;
    }
  3. silico26
    Member
    Posted 1 year ago #

    Worked perfect when I added it to the beginning of my child theme css... it didn't like it at the end of the css. Thanks Yogi!

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Mmm, if it was not working at the end, that may mean you have a syntax error someplace in there. Try validating your code to be sure -- otherwise you will likely have unpleasant surprises later...

    http://jigsaw.w3.org/css-validator/

  5. silico26
    Member
    Posted 1 year ago #

    Thanks for pointing this out. It found 108 errors (!!) however, when I delete all of my custom CSS from the stylesheet, it still finds 85 errors. So I can only assume these 85 errors must be present with a fresh install of the theme. Perhaps it's just outdated? Still seems like a lot..

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It's not that unusual, but some "errors" are not a problem -- but only because that CSS is not recognized as part of the standard -- i.e. browser specific "fixes" or features. The problematic ones are syntax errors which generally show up as Parse Errors -- usually a missing bracket or missing semi-colon.

  7. silico26
    Member
    Posted 1 year ago #

    I see, that makes sense. I figured something like this might be the case as companies with millions of dollars invested into their website are still bringing up errors (ebay, yahoo, etc). That being said, everything seems to be functioning properly in the major browsers, so I guess I'm just going to leave it alone... hopefully this sort of thing doesn't hurt your SEO, but I guess that's a whole other discussion :)

    Thanks again, I appreciate your help

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.