![]() |
Navbar, dropdown menu!
Hi,
I was wondering if it's possible to make one of the options I have on my navbar menu, to drop down? It's default for Search and Quick Links, is it possible to do the same for others? If so, how? Kind regards, Mr. Need. |
Sure. The navbar template is the best place to look at the popup menu routines. Such as the Quick Links link below:
Code:
<if condition="$show['popups']"> Code:
<if condition="$show['popups']"> To make it work you'll need to add in the popup bits. It's better to place this code at the bottom of the template. For the navbar template look for: Code:
<!-- NAVBAR POPUP MENUS --> Code:
<!-- In_need popup menu --> |
Hmm, It looks ok, but when I click on it, nothing comes down? The menu does not come down. I've added all the links and link names in, and the ID is also the same on both pages. Any ideas?
|
Hmm. This:
Code:
<if condition="$show['popups']"> Code:
<if condition="$show['popups']"> Now, going back to your question I cut and pasted the exact codes in my navbar template and it worked. When you say "both pages" where exactly did you place the codes? For troubleshooting, can you please provide the templates and codes that you used. :) |
Ahh. For it to work properly both codes need to be in the same template. Since your link is in the Header template remove your code in the navbar template. Then at the bottom of your Header template after:
Code:
<!-- /logo --> Code:
<if condition="$show['popups']"> BTW...If the links you are calling are within your domain, not an external domain, I suggest removing the "http://www.uponsunnah.com". It's just added server resources when you loop internal links. |
I put the code there, it still doesn't work :( It appears on the forum, but when I click on it, nothing drops down.
I don't see why it shouldn't work with the navbar template, the search and quicklinks does? |
Ooops. We forgot the "_menu". So...
Replace: Code:
<if condition="$show['popups']"> Code:
<if condition="$show['popups']"> |
:banana: It works! :cool: Thank you!
|
Glad you got it working. :)
|
Ok I'm doing something wrong here and cannot find it can you please help. It is adding the Gallery button and drop down. I'm going to add a few of these drop downs one for gallery one for links and a misc one. I know I need to add the IF statement for show popups and I will if I can get this working. I just plan on adding the IF / ELSE and either show the button with the down arrow or a gallery button that links directly to the gallery main page. I'm assuming this would be right.
Code:
<!-- set below for skin width--> |
All times are GMT. The time now is 07:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|