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