Jump to content

Creating a search bar in the header navigation on template 7.0

Recommended Posts

  • Replies 11
  • Views 2k
  • Created
  • Last Reply
On 2/1/2021 at 7:00 AM, Tim923 said:

Good Morning @tuanphan

 

I also wanted to instill a search bar into the top header for my page. I have it in the footer, at this time. 

 Site URL:  https://www.timothypaulsmith.com/

Password: Jack010203

Try this guide. https://www.will-myers.com/articles/adding-a-search-bar-to-your-header-in-squarespace-71

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 2/1/2021 at 9:00 PM, Tim923 said:

Good Morning @tuanphan

 

I also wanted to instill a search bar into the top header for my page. I have it in the footer, at this time. 

 Site URL:  https://www.timothypaulsmith.com/

Password: Jack010203

Okay. Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$('footer#footer .search-block').insertAfter('[data-nc-container="right"]');
	});
	</script>

image.thumb.png.50ef406e477de618b67dc06656ed472f.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 5 months later...
On 8/10/2021 at 1:09 AM, kimimischke said:

Does anyone know if there's a way to put the search bar in my navigation? I have a button in my header so the code is putting the search bar in a funny place. My client wants it to go after The Event in the navigation. 

The site is https://marigold-mushroom-ed2h.squarespace.com/config/

Thanks,

Kimi

Hi. You want to add search bar next to search item on Main Navigation?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.