<?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>Search bar in the Navigation Menu OR Top Bar &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 11 Oct 2025 09:35:57 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-126795</guid>
					<title><![CDATA[Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-126795</link>
					<pubDate>Fri, 17 Oct 2014 02:51:16 +0000</pubDate>
					<dc:creator>giftofjehovah</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>my website is <a href="http://www.langelir.com" rel="nofollow">http://www.langelir.com</a></p>
<p>1. How could I add the search bar at the menu (instead of just the magnifying glass you see)</p>
<p>2. Alternatively, is it possible to add it to the top bar? Please advise (:</p>
<p>3. Also how do I fix the photos of the products on the search result page as of current, using the in-built search by woo commerce or X theme (the magnifying glass in the menu bar)?</p>
<p>Thank you so much for your help!</p>
<p>Best regards,<br />
Vivien</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-126951</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-126951</link>
					<pubDate>Fri, 17 Oct 2014 10:01:02 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Vivien,</p>
<p>Thanks for writing in!</p>
<p>To be able to do this customization, you&#8217;ll need to set up a child theme first.</p>
<blockquote class="wp-embedded-content" data-secret="FYSGZj4dLP"><p><a href="https://theme.co/archive/kb/how-to-setup-child-themes/">How to Setup Child Themes</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="&#8220;How to Setup Child Themes&#8221; &#8212; Themeco Community" src="https://theme.co/archive/kb/how-to-setup-child-themes/embed/#?secret=E0CMKo1FJs#?secret=FYSGZj4dLP" data-secret="FYSGZj4dLP" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p>1. To add search in menu </p>
<p>You can add the code below in child theme&#8217;s functions.php</p>
<pre><code>
function add_search_to_wp_menu ( $items, $args ) {
    if( &#039;primary&#039; === $args -&gt; theme_location ) {
$items .= &#039;&lt;li class=&quot;menu-item menu-item-search&quot;&gt;&#039;;
$items .= &#039;&lt;form method=&quot;get&quot; class=&quot;menu-search-form&quot; action=&quot;&#039; . get_bloginfo(&#039;home&#039;) . &#039;/&quot;&gt;&lt;p&gt;&lt;input class=&quot;text_input&quot; type=&quot;text&quot; value=&quot;Enter Text &amp; Click to Search&quot; name=&quot;s&quot; id=&quot;s&quot; onfocus=&quot;if (this.value == \&#039;Enter Text &amp; Click to Search\&#039;) {this.value = \&#039;\&#039;;}&quot; onblur=&quot;if (this.value == \&#039;\&#039;) {this.value = \&#039;Enter Text &amp; Click to Search\&#039;;}&quot; /&gt;&lt;input type=&quot;submit&quot; class=&quot;my-wp-search&quot; id=&quot;searchsubmit&quot; value=&quot;search&quot; /&gt;&lt;/p&gt;&lt;/form&gt;&#039;;
$items .= &#039;&lt;/li&gt;&#039;;
    }
return $items;
}
add_filter(&#039;wp_nav_menu_items&#039;,&#039;add_search_to_wp_menu&#039;,10,2);
</code></pre>
<p>2.  To add search in topbar</p>
<p>Create file _topbar.php in x-child-renew/framework/views/global/_navbar.php<br />
then copy the code below into that file</p>
<pre><code>
&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_TOPBAR.PHP
// -----------------------------------------------------------------------------
// Includes topbar output.
// =============================================================================

?&gt;

&lt;?php if ( x_get_option( &#039;x_topbar_display&#039;, &#039;&#039; ) == &#039;1&#039; ) : ?&gt;

  &lt;div class=&quot;x-topbar&quot;&gt;
    &lt;div class=&quot;x-topbar-inner x-container-fluid max width&quot;&gt;
      &lt;?php if ( x_get_option( &#039;x_topbar_content&#039; ) != &#039;&#039; ) : ?&gt;
      &lt;p class=&quot;p-info&quot;&gt;&lt;?php echo x_get_option( &#039;x_topbar_content&#039; ); ?&gt;&lt;/p&gt;
      &lt;?php endif; ?&gt;
      &lt;?php x_social_global(); ?&gt;
      &lt;div class=&quot;searchform&quot;&gt;&lt;?=get_search_form();?&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php endif; ?&gt;
</code></pre>
<p>3. I am not sure what you want to do with the photos, but you can remove it in the search results page using the code below.</p>
<p>You can add this under <strong>Custom &gt; CSS</strong> in the <strong>Customizer</strong>.</p>
<pre><code>
.search.search-results img {
    display:none;
}
</code></pre>
<p>Hope that helps</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127496</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127496</link>
					<pubDate>Sat, 18 Oct 2014 05:05:10 +0000</pubDate>
					<dc:creator>giftofjehovah</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Thank you so much!<br />
But I have a terrible experience with functions.php, my screen &#8220;white&#8221; out twice so I&#8217;m not gonna touch that HAHA do you have alternative like plugins or custom &gt; css instead?</p>
<p>Sorry for the trouble!</p>
<p>Thank you so much for your help, I appreciate it(:</p>
<p>Best regards,<br />
Vivien</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127624</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127624</link>
					<pubDate>Sat, 18 Oct 2014 14:58:52 +0000</pubDate>
					<dc:creator>Kosher K</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Vivien,</p>
<p>Sorry for the trouble, I understand the issue with messing up your functions.php, 😉</p>
<p>Would you mind providing wordpress and FTP access to your site so I can implement the changes directly, and mess with your functions.php lol </p>
<p>Don&#8217;t forget to provide FTP access so we can fix for any functions.php error </p>
<p>Cheers</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127684</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127684</link>
					<pubDate>Sat, 18 Oct 2014 17:28:56 +0000</pubDate>
					<dc:creator>giftofjehovah</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127789</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127789</link>
					<pubDate>Sun, 19 Oct 2014 00:24:13 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>I just added the code with no problem, but I couldn&#8217;t check if it works with your menu. You&#8217;re using a cache plugin which I couldn&#8217;t check your output in real time.</p>
<p>Please provide an admin login too, or clear your cache then check if it works.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127966</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-127966</link>
					<pubDate>Sun, 19 Oct 2014 13:16:56 +0000</pubDate>
					<dc:creator>giftofjehovah</dc:creator>

					<description>
						<![CDATA[
						<p>Hi!</p>
<p>My friend managed to get it in hahaha<br />
but thank you so much for all the help!<br />
SUPER appreciate all the support! ((:</p>
<p>Best rgds,<br />
Vivien (:</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-128030</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-128030</link>
					<pubDate>Sun, 19 Oct 2014 16:23:31 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>You are welcome 🙂<br />
Take care.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-128277</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-128277</link>
					<pubDate>Mon, 20 Oct 2014 06:50:20 +0000</pubDate>
					<dc:creator>giftofjehovah</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there!</p>
<p>I have another problem with the search bar, it does not centre itself like My Account and My Cart when view in a mobile version. Could you help me fix that problem?</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-128347</guid>
					<title><![CDATA[Reply To: Search bar in the Navigation Menu OR Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-the-navigation-menu-or-top-bar/#post-128347</link>
					<pubDate>Mon, 20 Oct 2014 09:02:48 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>We&#8217;d love to help you with your concern however, that would be additional development so that would fall beyond the scope of our support.</p>
<p>Thank you for understanding.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

