<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>How to add Search in menu bar? &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 14 Oct 2025 08:56:31 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31380</guid>
					<title><![CDATA[How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31380</link>
					<pubDate>Wed, 09 Apr 2014 02:17:58 +0000</pubDate>
					<dc:creator>everett r</dc:creator>

					<description>
						<![CDATA[
						<p>How can I add the search widget in the menu bar<br />
Also what is the section at the top with the Black triangle and plus sign</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31512</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31512</link>
					<pubDate>Wed, 09 Apr 2014 13:05:49 +0000</pubDate>
					<dc:creator>Support</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Copy <strong>x/framework/views/global/_navbar.php</strong> to <strong>x-child/framework/views/global/_navbar.php</strong> search for <strong>&lt;/nav&gt;</strong> and paste code below just after that line.</p>
<pre><code>&lt;div class=&quot;custom-search&quot;&gt;
	  &lt;form id=&quot;searchform&quot; class=&quot;form-search&quot; action=&quot;&lt;?php bloginfo(&#039;home&#039;); ?&gt;/&quot; method=&quot;get&quot;&gt;

	      &lt;label class=&quot;visually-hidden&quot; for=&quot;s&quot;&gt;&lt;/label&gt;
	      &lt;input id=&quot;s&quot; class=&quot;search-query&quot; type=&quot;text&quot; placeholder=&quot;Search&quot; name=&quot;s&quot;&gt;&lt;/input&gt;
	      &lt;input id=&quot;searchsubmit&quot; class=&quot;hidden&quot; type=&quot;submit&quot; value=&quot;Search&quot; name=&quot;submit&quot;&gt;&lt;/input&gt;

	  &lt;/form&gt;
&lt;/div&gt;</code></pre>
<p>Final file should look like following</p>
<pre><code>&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_NAVBAR.PHP
// -----------------------------------------------------------------------------
// Includes navbar output.
// =============================================================================

$get_name          = get_bloginfo( &#039;name&#039; );
$get_description   = get_bloginfo( &#039;description&#039; );
$x_logo            = get_theme_mod( &#039;x_logo&#039; );
$has_primary_nav   = has_nav_menu( &#039;primary&#039; );
$one_page_nav_meta = get_post_meta( get_the_ID(), &#039;_x_page_one_page_navigation&#039;, true );
$one_page_nav      = ( $one_page_nav_meta == &#039;&#039; ) ? &#039;Deactivated&#039; : $one_page_nav_meta;

?&gt;

&lt;div class=&quot;x-navbar-wrap&quot;&gt;
  &lt;div class=&quot;&lt;?php x_navbar_class(); ?&gt;&quot;&gt;
    &lt;div class=&quot;x-navbar-inner x-container-fluid max width&quot;&gt;
      &lt;?php if ( is_front_page() ) : echo &#039;&lt;h1 class=&quot;visually-hidden&quot;&gt;&#039; . $get_name . &#039;&lt;/h1&gt;&#039;; endif; ?&gt;
      &lt;a href=&quot;&lt;?php echo home_url( &#039;/&#039; ); ?&gt;&quot; class=&quot;&lt;?php x_brand_class(); ?&gt;&quot; title=&quot;&lt;?php echo $get_description; ?&gt;&quot;&gt;
        &lt;?php echo ( $x_logo == &#039;&#039; ) ? $get_name : &#039;&lt;img src=&quot;&#039; . $x_logo . &#039;&quot; alt=&quot;&#039; . $get_description . &#039;&quot;&gt;&#039;; ?&gt;
      &lt;/a&gt;
      &lt;a href=&quot;#&quot; class=&quot;x-btn-navbar collapsed&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.x-nav-collapse&quot;&gt;
        &lt;i class=&quot;x-icon-bars&quot;&gt;&lt;/i&gt;
        &lt;span class=&quot;visually-hidden&quot;&gt;&lt;?php _e( &#039;Navigation&#039;, &#039;__x__&#039; ); ?&gt;&lt;/span&gt;
      &lt;/a&gt;
      &lt;nav class=&quot;x-nav-collapse collapse&quot; role=&quot;navigation&quot;&gt;

        &lt;?php

        if ( $one_page_nav != &#039;Deactivated&#039; ) :
          wp_nav_menu( array(
            &#039;menu&#039;       =&gt; $one_page_nav,
            &#039;container&#039;  =&gt; false,
            &#039;menu_class&#039; =&gt; &#039;x-nav x-nav-scrollspy sf-menu&#039;
          ) );          
        elseif ( $has_primary_nav ) :
          wp_nav_menu( array(
            &#039;theme_location&#039; =&gt; &#039;primary&#039;,
            &#039;container&#039;      =&gt; false,
            &#039;menu_class&#039;     =&gt; &#039;x-nav sf-menu&#039;
          ) );
        else :
          echo &#039;&lt;ul class=&quot;x-nav&quot;&gt;&lt;li&gt;&lt;a href=&quot;&#039; . home_url( &#039;/&#039; ) . &#039;wp-admin/nav-menus.php&quot;&gt;Assign a Menu&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&#039;;
        endif;

        ?&gt;

      &lt;/nav&gt; &lt;!-- end .x-nav-collapse.collapse --&gt;
&lt;div class=&quot;custom-search&quot;&gt;
	  &lt;form id=&quot;searchform&quot; class=&quot;form-search&quot; action=&quot;&lt;?php bloginfo(&#039;home&#039;); ?&gt;/&quot; method=&quot;get&quot;&gt;

	      &lt;label class=&quot;visually-hidden&quot; for=&quot;s&quot;&gt;&lt;/label&gt;
	      &lt;input id=&quot;s&quot; class=&quot;search-query&quot; type=&quot;text&quot; placeholder=&quot;Search&quot; name=&quot;s&quot;&gt;&lt;/input&gt;
	      &lt;input id=&quot;searchsubmit&quot; class=&quot;hidden&quot; type=&quot;submit&quot; value=&quot;Search&quot; name=&quot;submit&quot;&gt;&lt;/input&gt;

	  &lt;/form&gt;
&lt;/div&gt;
    &lt;/div&gt; &lt;!-- end .x-navbar-inner --&gt;
  &lt;/div&gt; &lt;!-- end .x-navbar --&gt;
&lt;/div&gt; &lt;!-- end .x-navbar-wrap --&gt;</code></pre>
<p>Add following line of code to <strong>Customizer</strong> &rarr; <strong>Custom</strong> &rarr; <strong>CSS</strong></p>
<pre>
.custom-search{
color: #0157A8 !important;
float: right !important;
font-size: 18px !important;
margin: 20px 5px 0 10px !important;
width:20%;
}
</pre>
<p>Black triangle with black sign is to show widget bar.To add content in widget bar go to <strong>Appearance</strong> &rarr; <strong>Widgets</strong> and place whatever widget you want to appear there in <strong>Header Widget Area #1</strong> and <strong>Header Widget Area #2</strong> that will appear when you click that little plus icon on the triangle on top.</p>
<p>Screenshot: <a href="http://prntscr.com/38e3vb" target="_blank" rel="nofollow">http://prntscr.com/38e3vb</a></p>
<p>You can add up to 4 widgets in widget bar to choose the number of widgets go to <strong>Customizer</strong> &rarr; <strong>Header</strong> &rarr; <strong>Header Widget Areas</strong> and choose the numbers.</p>
<p>There you can also adjust the widget bar button&#8217;s background color and hover color.</p>
<p>Screenshot: <a href="http://prntscr.com/38e4yp" target="_blank" rel="nofollow">http://prntscr.com/38e4yp</a></p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31719</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31719</link>
					<pubDate>Wed, 09 Apr 2014 20:24:57 +0000</pubDate>
					<dc:creator>everett r</dc:creator>

					<description>
						<![CDATA[
						<p>awesome help thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31739</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31739</link>
					<pubDate>Wed, 09 Apr 2014 20:48:37 +0000</pubDate>
					<dc:creator>everett r</dc:creator>

					<description>
						<![CDATA[
						<p>Copy x/framework/views/global/_navbar.php to x-child/framework/views/global/_navbar.php search for &lt;/nav&gt; and paste code below just after that line.</p>
<p>Just guide me where i find this<br />
Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31832</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-31832</link>
					<pubDate>Thu, 10 Apr 2014 01:29:53 +0000</pubDate>
					<dc:creator>Support</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there!</p>
<p>You need edit those files via FTP or your cpanel. If you&#8217;re not comfortable doing this yourself, look for services such as Microlancer or Tweaky for assistance. </p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-42095</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-42095</link>
					<pubDate>Thu, 08 May 2014 13:35:10 +0000</pubDate>
					<dc:creator>q j</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Support, I followed these steps and got the search bar displayed but 2 issues:</p>
<p>1. Does not display in top menu bar<br />
2. You can click to enter text and search</p>
<p>Let me know what info you need to debug, thank you. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-42493</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-42493</link>
					<pubDate>Fri, 09 May 2014 09:05:10 +0000</pubDate>
					<dc:creator>Rubin</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>can you provide us with the address of the site so we can take a look at it to properly help you. Otherwise it would be a lot of guessing what&#8217;s going wrong. Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-749233</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-749233</link>
					<pubDate>Sat, 16 Jan 2016 23:07:21 +0000</pubDate>
					<dc:creator>Scott Wiggins</dc:creator>

					<description>
						<![CDATA[
						<p>Why would you not have a simple way to add a search bar in the MAIN menu at the top of home page? I am not a coder at ALL and every answer I find in the knowledge base you have to enter code examples above. smh. simple yet not simple. Not as advertised.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-749432</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-749432</link>
					<pubDate>Sun, 17 Jan 2016 03:43:14 +0000</pubDate>
					<dc:creator>Rue Nel</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Thanks for updating this thread! The solution given on this thread is a bit older. In our latest X version, you can simply activate the search functionality for the navbar. If activated, an icon will appear that when clicked will activate the search modal. By default it is disabled. You can turn it on by going to <strong>Appearance &gt; Customize &gt; Header &gt; Search</strong>.</p>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-764064</guid>
					<title><![CDATA[Reply To: How to add Search in menu bar?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-search-in-menu-bar/#post-764064</link>
					<pubDate>Tue, 26 Jan 2016 01:45:45 +0000</pubDate>
					<dc:creator>Scott Wiggins</dc:creator>

					<description>
						<![CDATA[
						<p>I enabled the search icon in customizer under the header section, but when I typed in something relevant to my blog posts, there was no predictive search or anything, and it just took me to a page that said &#8220;sorry nothing found&#8221;. Do does someone have to type in the exact phrasing of what they are looking for?</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

