WordPress.org

Forums

[resolved] How to remove nav/menu bar, search box, forever (19 posts)

  1. Tammie Earl
    Member
    Posted 2 years ago #

    Hello and thanks so much to anyone who is willing to help put this baby to rest once and for all! There are a blue zillion posts about this very subject but absolutely none of them are step by step enough for a dumb novice like me to follow.

    Apparently one must edit some of the css code. cool. I made a child theme, I'm ready.

    Also it seems one must edit some of the header.php code. Very well, what code? Where? What line? Do I comment out code (delete code) or do I ADD code?

    There is some kind of #branding code that must be added or deleted but in all the posts I've read, it is mentioned but it does not specifically say WHERE to add the code, or if one should find that code and delete it. Is this code found in header.php or is it found in the css? or perhaps some other place?

    Can someone explain this, step by step? Start with one thing, explain that part all the way through, then move on to the next thing. I've read at least 15 of these wordpress forum requests and I'm still just as confused as when I started. THANKS IN ADVANCE to the dude or dudette that takes this on!!!

  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Which theme are you using? Twenty Eleven?

  3. Tammie Earl
    Member
    Posted 2 years ago #

    yes, twenty eleven. Should I be looking at a different theme perhaps?

  4. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    You can hide it using CSS display: none.
    E.g in your Child Theme stylesheet, try using,

    #branding #searchform,
    #access {
     display: none;
    }
  5. Tammie Earl
    Member
    Posted 2 years ago #

    OK can you tell me about what line I'd find this? THANKS!

  6. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    It isn't in your stylesheets.

  7. Tammie Earl
    Member
    Posted 2 years ago #

    OK where do I put it? In the stylesheet or on the header.php Page? Where on the page?

  8. Tammie Earl
    Member
    Posted 2 years ago #

    I tried putting it in the style.css right after the structure starts and it did not work.

  9. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    The stylesheet of your Child Theme?

  10. Tammie Earl
    Member
    Posted 2 years ago #

    yes it didn't work. I put it in the child theme, then activated the child theme with the code saved. I tried cutting the code and pasting it right after header stuff starts, that did not work either.

  11. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Can you link the website?

  12. Tammie Earl
    Member
    Posted 2 years ago #

  13. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    I don't think you've created the Child Theme properly.
    You don't need to duplicate the theme, but create a directory inside that theme and import the styles over http://codex.wordpress.org/Child_Themes#Example_of_a_basic_Child_Theme .

  14. Tammie Earl
    Member
    Posted 2 years ago #

    Oh. OK let me mess with this a few minutes. THANKS!!!

  15. Tammie Earl
    Member
    Posted 2 years ago #

    Ok I made the directory and file, plopped all the code that was in that link you gave me into the file, saved it. and it still doesn't work. Andrew you are awesome, please hang with me a little longer I think we are getting there and THANK YOU SO MUCH!

  16. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Have you activated the Child Theme through the dashboard?

  17. Tammie Earl
    Member
    Posted 2 years ago #

    Wait it worked! I had forgotten to activate my child theme. THANK YOU SO MUCH!

    OK to all the [ people who are struggling with child themes ], you do HAVE to follow all the rules and create a child theme step by step just like the link above, then follow what the link tells you to do. I have access to my cpanel so it was easy.

    Then, when you are done, don't forget to ACTIVATE the child theme from the themes in your dashboard. THANK YOU ANDREW!

  18. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Easy on the name calling, we want to promote an environment where "newbies" feel encouraged to post, rather than discouraged.

  19. Tammie Earl
    Member
    Posted 2 years ago #

    Gotcha. Well It was sort of meant for ME. Because if I'd followed the advice of the ten billion other posts that says "here's how you build a child theme" rather than just figure I knew it all, maybe this all could have been avoided. So I take it back ;)

Topic Closed

This topic has been closed to new replies.

About this Topic