<?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 navbar &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/search-bar-in-navbar/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 18 Oct 2025 11:57:28 +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-navbar/#post-191021</guid>
					<title><![CDATA[Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-191021</link>
					<pubDate>Sun, 25 Jan 2015 06:37:12 +0000</pubDate>
					<dc:creator>mutzy94</dc:creator>

					<description>
						<![CDATA[
						<p>Rather than have the search icon I would prefer to have a search bar in the navbar (to the right of the menu categories) where customers could enter their search phrase directly rather than use the native method. I tried following the directions in the post below without any luck:</p>
<p><a href="https://theme.co/x/member/forums/topic/how-to-add-search-in-menu-bar/#post-31512" rel="nofollow">https://theme.co/x/member/forums/topic/how-to-add-search-in-menu-bar/#post-31512</a></p>
<p>Any suggestions? Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-191173</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-191173</link>
					<pubDate>Sun, 25 Jan 2015 16:09:02 +0000</pubDate>
					<dc:creator>mutzy94</dc:creator>

					<description>
						<![CDATA[
						<p>Almost forgot, here is my website:  <a href="http://www.expeditiondocs.com" rel="nofollow">http://www.expeditiondocs.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-191559</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-191559</link>
					<pubDate>Mon, 26 Jan 2015 09:17:36 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Create <strong>_navbar.php</strong> file under <strong>YOUR CHILD THEME -&gt; framework -&gt; views -&gt; global</strong> and add this code in there:</p>
<pre><code>&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_NAVBAR.PHP
// -----------------------------------------------------------------------------
// Outputs the navbar.
// =============================================================================

$navbar_position = x_get_navbar_positioning();
$logo_nav_layout = x_get_logo_navigation_layout();
$is_one_page_nav = x_is_one_page_navigation();

?&gt;

&lt;?php if ( ( $navbar_position == &#039;static-top&#039; || $navbar_position == &#039;fixed-top&#039; || $is_one_page_nav ) &amp;&amp; $logo_nav_layout == &#039;stacked&#039; ) : ?&gt;

  &lt;div class=&quot;x-logobar&quot;&gt;
    &lt;div class=&quot;x-logobar-inner&quot;&gt;
      &lt;div class=&quot;x-container max width&quot;&gt;
        &lt;?php x_get_view( &#039;global&#039;, &#039;_brand&#039; ); ?&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&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&quot;&gt;
        &lt;div class=&quot;x-container max width&quot;&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_nav&#039;, &#039;primary&#039; ); ?&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;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php else : ?&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&quot;&gt;
        &lt;div class=&quot;x-container max width&quot;&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_brand&#039; ); ?&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_nav&#039;, &#039;primary&#039; ); ?&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;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php endif; ?&gt;</code></pre>
<p>Please add the following CSS under<strong> Customize -&gt; Custom -&gt; CSS</strong> :</p>
<pre><code>.custom-search{
color: #0157A8 !important;
float: right !important;
font-size: 18px !important;
margin: 20px 5px 0 10px !important;
width:20%;
}</code></pre>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192069</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192069</link>
					<pubDate>Mon, 26 Jan 2015 20:14:08 +0000</pubDate>
					<dc:creator>AnBeeToSee</dc:creator>

					<description>
						<![CDATA[
						<p>this is not help.<br />
<img decoding="async" src="https://leto49d.storage.yandex.net/rdisk/043c46f3cb20e59f34bd9bfbdd087640/mpfs/Tb9FNlTJnYDpWJWweUPFBVcoZwkkS9WEpbEzfwIqD-RZUWtGQA20h5X0LkQ8TkT9fbyyZItRBN-rNU3uoAEmAQ==?uid=0&amp;filename=2015-01-26%2023-12-56%20%D0%90%D0%BA%D1%82%D0%B8%D0%B2%D0%BD%D1%8B%D0%B5%20%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D0%B8%20%D0%B8%20%D0%BA%D0%BE%D0%B3%D0%BE%D1%80%D1%82%D0%BD%D1%8B%D0%B9%20%D0%B0%D0%BD%D0%B0%D0%BB%D0%B8%D0%B7%20%D0%B2%20Google%20Analytics%20%7C%20%D0%91%D0%BB%D0%BE%D0%B3%20%D0%BE%20%D0%BC%D0%BE%D0%B1%D0%B8%D0%BB%D1%8C%D0%BD%D0%BE%D0%B9%20%D0%B8%20%D0%B2%D0%B5%D0%B1-%D0%B0%D0%BD%D0%B0%D0%BB%D0%B8%D1%82%D0%B8%D0%BA%D0%B5.png&amp;disposition=inline&amp;hash=&amp;limit=0&amp;content_type=image%2Fpng&amp;rtoken=6a1d98684215d78c73666cef90b1916a&amp;rtimestamp=54c69ff4&amp;force_default=no" alt="" /></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192128</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192128</link>
					<pubDate>Mon, 26 Jan 2015 21:28:14 +0000</pubDate>
					<dc:creator>AnBeeToSee</dc:creator>

					<description>
						<![CDATA[
						<p>can hope for an answer?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192406</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192406</link>
					<pubDate>Tue, 27 Jan 2015 06:47:20 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey AnBee,</p>
<p>Please open your issue in a separate thread and give us your URL and WordPress admin there so we could investigate maybe your setup is different.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192429</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192429</link>
					<pubDate>Tue, 27 Jan 2015 07:11:22 +0000</pubDate>
					<dc:creator>mutzy94</dc:creator>

					<description>
						<![CDATA[
						<p>I did what as you said but the search bar is too low in the navbar similar to what AnBeeToS experienced. I want it on the same level as the menu categories.</p>
<p>Also, when I search for something there is a huge gap between the navbar and the first search result. My childtheme navbar.php info is below for reference</p>
<p>Thanks, Josh</p>
<pre><code>&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_NAVBAR.PHP
// -----------------------------------------------------------------------------
// Outputs the navbar.
// =============================================================================

$navbar_position = x_get_navbar_positioning();
$logo_nav_layout = x_get_logo_navigation_layout();
$is_one_page_nav = x_is_one_page_navigation();

?&gt;

&lt;?php if ( ( $navbar_position == &#039;static-top&#039; || $navbar_position == &#039;fixed-top&#039; || $is_one_page_nav ) &amp;&amp; $logo_nav_layout == &#039;stacked&#039; ) : ?&gt;

  &lt;div class=&quot;x-logobar&quot;&gt;
    &lt;div class=&quot;x-logobar-inner&quot;&gt;
      &lt;div class=&quot;x-container max width&quot;&gt;
        &lt;?php x_get_view( &#039;global&#039;, &#039;_brand&#039; ); ?&gt;
        &lt;!-- .custom-social-icons --&gt;
        &lt;div class=&quot;logobar-social&quot;&gt;
          &lt;a href=&quot;http://www.facebook.com/expeditiondocs&quot;&gt;
            &lt;img alt=&quot;Facebook&quot; src=&quot;http://www.expeditiondocs.com/wp-content/uploads/2015/01/facebook.png&quot; width=&quot;35&quot; height=&quot;35&quot; /&gt;
          &lt;/a&gt;
          &lt;a href=&quot;http://www.twitter.com/expeditiondocs&quot;&gt;
            &lt;img alt=&quot;Twitter&quot; src=&quot;http://www.expeditiondocs.com/wp-content/uploads/2015/01/twitter.png&quot; width=&quot;35&quot; height=&quot;35&quot; /&gt;
          &lt;/a&gt;
          &lt;a href=&quot;https://www.linkedin.com/profile/view?id=130267670&quot;&gt;
            &lt;img alt=&quot;LinkedIn&quot; src=&quot;http://www.expeditiondocs.com/wp-content/uploads/2015/01/linkedin.png&quot; width=&quot;35&quot; height=&quot;35&quot; /&gt;
          &lt;/a&gt;
          &lt;a href=&quot;http://www.instagram.com/expeditiondocs&quot;&gt;
            &lt;img alt=&quot;Instagram&quot; src=&quot;http://www.expeditiondocs.com/wp-content/uploads/2015/01/instagram.png&quot; width=&quot;35&quot; height=&quot;35&quot; /&gt;
          &lt;/a&gt;
          &lt;a href=&quot;mailto:expeditiondocs@gmail.com&quot;&gt;
            &lt;img alt=&quot;Email&quot; src=&quot;http://www.expeditiondocs.com/wp-content/uploads/2015/01/email.png&quot; width=&quot;35&quot; height=&quot;35&quot; /&gt;
          &lt;/a&gt;
          &lt;a href=&quot;http://www.expeditiondocs.com/feed&quot;&gt;
            &lt;img alt=&quot;RSS&quot; src=&quot;http://www.expeditiondocs.com/wp-content/uploads/2015/01/rss.png&quot; width=&quot;35&quot; height=&quot;35&quot; /&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;!-- /.custom-social-icons --&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&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&quot;&gt;
        &lt;div class=&quot;x-container max width&quot;&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_nav&#039;, &#039;primary&#039; ); ?&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;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php else : ?&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&quot;&gt;
        &lt;div class=&quot;x-container max width&quot;&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_brand&#039; ); ?&gt;
          &lt;?php x_get_view( &#039;global&#039;, &#039;_nav&#039;, &#039;primary&#039; ); ?&gt;
        &lt;/div&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;/div&gt;
  &lt;/div&gt;

&lt;?php endif; ?&gt;
</code></pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192800</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192800</link>
					<pubDate>Tue, 27 Jan 2015 17:06:19 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Josh,</p>
<p>Thank you for writing in! </p>
<p>Please replace above provided CSS code with following:</p>
<pre><code>.custom-search {
    color: #0157A8 !important;
    font-size: 18px !important;
}

@media (min-width: 980px) {
    .x-nav-wrap.desktop {
        vertical-align: middle;
        display: inline-block;
    }

    .x-navbar-inner {
        text-align: center;
    }

    .custom-search {
        margin: 0px 5px 0 10px !important;
        width: 20%;
        display: inline-block;
        vertical-align: middle;
    }   
}

@media (max-width: 979px) {
   .custom-search {
       display: block;
       width: 100%;
       margin-bottom: 10px !important;
       margin-top: 10px !important;
   }
}
</code></pre>
<p>Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192829</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192829</link>
					<pubDate>Tue, 27 Jan 2015 17:34:56 +0000</pubDate>
					<dc:creator>mutzy94</dc:creator>

					<description>
						<![CDATA[
						<p>Perfect, thanks again!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192928</guid>
					<title><![CDATA[Reply To: Search bar in navbar]]></title>
					<link>https://theme.co/archive/forums/topic/search-bar-in-navbar/#post-192928</link>
					<pubDate>Tue, 27 Jan 2015 20:19:23 +0000</pubDate>
					<dc:creator>Nabeel A</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re most welcome 🙂</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

