Jump to content

AaronCube

Member
  • Posts

    10
  • Joined

  • Last visited

AaronCube's Achievements

  1. Well I think I've figured a work around that gets the search bar in the right place and working correctly for the Five template. I'm not great at coding so if there's a better way to do this I'll take suggestions! <script type="text/javascript"> $(window).load(function(){ $(".search-block").insertAfter($("#main-navigation")); }); </script>
  2. Hi Silvabokis, I've tried to implement the code above into the Five template but it doesnt seem to work. I've fiddled with the code and got it displaying in the correct place... <script type="text/javascript"> $( init ); function init() { $("#main-navigation > ul > li:nth-last-child(1) a").replaceWith($(".search-block")); } </script> However now the search box doesnt work. If I strip back the code to #main-navigation the search works but this replaces the entire navigation. <script type="text/javascript"> $( init ); function init() { $("#main-navigation").replaceWith($(".search-block")); } </script> Any ideas?Site: healthandsafetyatworknz.squarespace.com
×
×
  • 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.