i want to make my header link back to the homepage, but i’ve run into a problem with using the search bar. when users go to click on the search bar the page reloads before they have a chances to enter their search.
i reverted back to the original header.php code and the search bar works fine again it’s just the image doesnt link anymore. any suggestions?
header link code: <div id="header" onclick="location.href='http://www.currentdose.com/';" style="cursor: pointer;">
That code won’t work properly because your search form is effectively part of your header. You’d need to to a lot more theme editing to make most of your header clickable without it impacting on your search bar.
What you need to do, as far as I can see, is insert another div block within the header and set its width to about 500px in your stylesheet and add the onlick function to this block instead. So something like: