[resolved] How to hide navbar on one page? (3 posts)

  1. Jray
    Posted 2 years ago #

    Disclaimer: a week ago i didn't now how to add a link with hTML. so pleas forgive me if I've messed anything glaringly obvious.

    Website: http://556graphx.com/
    Store Page: http://http://556graphx.com/store/


    I'm trying to build a website that has most the content on one "main" page and a 2nd page that works as store and checkout.

    So i changed the navigation bar links to "jump" to parts of the main page using href="#example" but now on the store page I won't to build my own navbar and hide the main one.

    I know how to hide the navbar on all pages by using nav.top-bar {display: none;} but wan i try to use the page id nothing happens `body.page-id-418 nav.top-bar {display: none;}

    I've also fallowed the instructions on this Post to no end.

    So just guessing hear. the problems something with the page id?
    the url of the store page in edit mode looks like this http://556graphx.com/wp-admin/post.php?post=418&action=edit

    so I'm assuming that the page id is "418" right?

    PS I'm using a child theme of Spine

    Any help would be much appreciated!

  2. Michael
    Part-Time Forum Moderator
    Posted 2 years ago #

    the body tag of the 'store' page looks like:

    <body class="wordpress ltr en_US child-theme y2013 m11 d21 h19 thursday logged-out custom-background custom-header singular singular-page singular-page-418 page-template-default layout-1c" itemscope itemtype="http://schema.org/WebPage">

    the page specific CSS class is in your case .singular-page-418

    (use 'view source' on the browser tool bar to view the html code of the page; or use a browser inspection tool)

  3. Jray
    Posted 2 years ago #

    Thanks for the quack replay!
    works perfectly now.

    I was using Firefox's page inspect tool. but I probably should have dun a more thorough job. (or spent more time actually learning actual HTML etc...) Sorry.

    but you just ended 2 days of Headaches so thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic