Good Morning,
I am trying to remove the pop up search from my forum and instead have the navigation bar just link to the search page. The code has the onclick property to fire the search box, I can't find a way to remove this as it's not accessible in the templates.
Here's a screenshot of why I want to remove it, it falls behind the #wrap in my code.
My forum link is pogoraids.forumotion.com, accessible at pogoraiders.com.. Forum version is ModernBB
Edit: the code that shows in dev console is
So i tried to override using
However this does nothing.
I am trying to remove the pop up search from my forum and instead have the navigation bar just link to the search page. The code has the onclick property to fire the search box, I can't find a way to remove this as it's not accessible in the templates.
Here's a screenshot of why I want to remove it, it falls behind the #wrap in my code.
My forum link is pogoraids.forumotion.com, accessible at pogoraiders.com.. Forum version is ModernBB
Edit: the code that shows in dev console is
- Code:
<a class="mainmenu" href="/search" onclick="showhide(document.getElementById('search_menu')); return false;" target="_blank">Search</a>
So i tried to override using
- Code:
const a = document.querySelector('.mainmenu');
a.onclick = null;
a.removeAttribute('target');
However this does nothing.
Last edited by EnigmaSpirit on Sat 23 Jan - 22:15; edited 1 time in total