• Resolved clarice29

    (@clarice29)


    Hi, I am using the Primer theme and been trying to remove the Search bar on the right sidebar.The thing is, it’s not on the widgets list so I cannot drag and remove like how you normally would. Is there another way to remove the search bar?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @clarice29,

    Which page are you seeing the search bar on?

    Can you share a link to the page where you are seeing the search bar? Once it’s removed from the widgets, it should no longer appear on the site.

    Thread Starter clarice29

    (@clarice29)

    @eherman24, it is: http://mattersoftheca.staging.wpengine.com, the widgets are not there anymore, but it still shows in the homepage, right side before the subscription.

    Hi @clarice29,

    It doesn’t look like the search form there is a widget. It looks like it was added to a template, or was added via an action hook. You may want to check your .php template files for any alterations in there.

    Thread Starter clarice29

    (@clarice29)

    Not sure how to do that. Any code I can add to CSS to remove it, hide it?

    Hi @clarice29,

    Sure you should be able to hide the form altogether by adding the following bit of CSS to your themes ‘Additional CSS’ section inside of the customizer:

    .search-form {
       display: none;
    }

    It’s worth noting that if you do have a search form anywhere else on your site that will also be hidden.

    If that is the case, you can hide the search form that comes directly after the primary page content by doing:

    #primary + .search-form {
       display: none;
    }

    But either way should work.

    Evan

    Thread Starter clarice29

    (@clarice29)

    @eherman24 thank you. I used the second one and it worked! Thank you again!

    No problem at all @clarice29. Have a wonderful rest of your day!

    Evan

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

The topic ‘Removing search bar’ is closed to new replies.