• Resolved Dreamz21

    (@dreamz21)


    So I am having trouble removing items from my wordpress such as the nav bar I used the exact codes but it doesn’t work.

    For instance lets say I want to remove the search box on this page
    http://mcagoldnetwork.com/contact/

    the code would be
    page-id-424 .search-toggle{
    display: none;
    }

    But none of these css codes are working? Can anyone tell me whats wrong

Viewing 5 replies - 1 through 5 (of 5 total)
  • On line 82 of your custom stylesheet, you’ve forgotten the ending bracket of this section:

    .page-id-117 .navbar {
        background-color: #000;
        margin: 0px auto;
        max-width: 1600px;
        width: 100%;

    which is causing parsing errors down the rest of the stylesheet. Also, you’ve left off the period at the start of the code you’ve posted:

    page-id-424 .search-toggle{
    display: none;
    }

    should be

    .page-id-424 .search-toggle{
    display: none;
    }
    Thread Starter Dreamz21

    (@dreamz21)

    yea I didn’t notice that well I just fixed it and still no luck I fixed the style sheet for the
    .page-id-117 and added the ending backet }

    I also added the . to the page-id-424

    and still the search toggle is on my contact page?
    this is the first time this has been happening?

    You are missing a closing bracket between these two:

    .page-id-117 .header-main{
    display: none;
    
    .page-id-117 .page_item{
    display: none;
    }

    And this line should not be in your CSS file:

    mcagoldnetwork.com/media="all"

    A good way to check your CSS for errors is using the validator here:

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

    Thread Starter Dreamz21

    (@dreamz21)

    thank you so much guys this worked perfectly and thank you for the site recommendation.

    Yay – glad to hear that – and you’re welcome too :)!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to remove items from wordpress with css’ is closed to new replies.