bhadaway / blankslate

A naked WordPress theme, powering over 10k websites. Buy me a sandwich. 🥪
https://opencollective.com/blankslate
328 stars 92 forks source link

Blank Slate – Can’t Remove Page List and Search Box Widget #39

Closed github4me20222022 closed 2 years ago

github4me20222022 commented 2 years ago

The Blank Slate plugin theme displays a list of all pages for the website at the top of each page followed by a search box and button. The feature appears to be a widget of some type. There aren’t any widgets listed under the widgets customizing menu but there is a message displayed stating “Your theme has 1 other widget area, but this particular page doesn’t display it”. This isn’t the case though. How do I remove the page list and search box and button from the top of my website pages. Thanks in advance.

bhadaway commented 2 years ago

Set up a child theme if you haven't yet, then copy over header.php.

Remove this part:

<nav id="menu" role="navigation" itemscope itemtype="https://schema.org/SiteNavigationElement">
<?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'link_before' => '<span itemprop="name">', 'link_after' => '</span>' ) ); ?>
<div id="search"><?php get_search_form(); ?></div>
</nav>
github4me20222022 commented 2 years ago

Thank you for your assistance Bryan!!!

bhadaway commented 2 years ago

You're welcome.