WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
how to remove the search bar from the header? (5 posts)

  1. theregoesjb
    Member
    Posted 1 year ago #

    this seems like such a simple theme-based option but i dont see it anywhere. There is a search widget, but its not added to any header/sidebars, so theres nothing to remove.

    I am using the 'no sidebars' (not full width) layout option.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The easiest way to do that is by using "display: none;" in the CSS code for that element(s). I know you're on localhost (so I can't look at your site specifically), but I looked at the demo for the theme and it looks like this CSS should work:

    #header #searchform {
        display: none;
    }

    Then you'll probably want to add this as well to fix the margin on the right side of the remaining social icons:

    #social-media-icons {
        margin-right: 3.4%;
    }
  3. WP_Ozone
    Member
    Posted 10 months ago #

    @WPyogi - I added

    #header #searchform {
        display: none;
    }

    at NBR Canada website and it removed the search bar. But, when I removed the above code, search bar doesn't re-appear.

    Do you know why? Thanks in advance.

  4. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

    Looks like it has been added into header.php as well, looks hard-coded in.

  5. sbmaza
    Member
    Posted 10 months ago #

    you can just delete the widget..

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.