MyBB Community Forums

Full Version: Dropdown Menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was wondering if there is anyway I could make a dropdown menu for the main menu of my site. So if you highlight under forums lets say, there would be links to Welcome Forum, Other Forum...

Thanks! Smile
Just take a look at postbit_edit template. The same technique can be used to accomplish what you want.
I still don't understand, what code should i post?
<a href="index.php" id="forums_menu">Forums</a>
<div id="forums_menu_popup" class="popup_menu" style="display: none;">
	<div class="popup_item_container"><a href="forum-XX.html" class="popup_item">Welcome Forum</a></div>
	<div class="popup_item_container"><a href="forum-XX.html" class="popup_item">Other Forum</a></div>
	<div class="popup_item_container"><a href="forum-XX.html" class="popup_item">Other Forum</a></div>
	<div class="popup_item_container"><a href="forum-XX.html" class="popup_item">Other Forum</a></div>
	<div class="popup_item_container"><a href="forum-XX.html" class="popup_item">Other Forum</a></div>
</div>
<script type="text/javascript">
// <!--
	if(use_xmlhttprequest == "1")
	{
		new PopupMenu("forums_menu");
	}
// -->
</script>
Thanks! Smile Where do I put the code?
I put the code in: postbit_edit and it doesn't work. Am I suppose to edit it? If so, what parts? Sorry, I'm not too good at coding
The Header template is usually where the main menu is.
I'm sorry, but I still don't know where to put my code. I have been trying many different places but I couldn't find anywhere that works.
Can you post the code for your sites main menu?
I'm not sure how to
Copy and paste the contents of the header template.
Pages: 1 2