Drop Down Menu - where to edit code?
Permalink
hello everyone, i am new to the forums but have been using concrete for a while..
I just started using a vanilla theme with navigation drop down which was posted on here..
but i got a question:
Most drop down solutions don't have the opening <li> listed.
where do i find that? I need to find a opening <li class="drop"> so the jqueery can do it's work.
That is the code i am using, as you can see i have no idea where the <li> is.
I just started using a vanilla theme with navigation drop down which was posted on here..
but i got a question:
Most drop down solutions don't have the opening <li> listed.
where do i find that? I need to find a opening <li class="drop"> so the jqueery can do it's work.
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $aBlocks = $controller->generateNav(); global $c; if ($c->isEditMode()) { echo(" <div class=\"menu\" style=\"position:inherit!important;\"> <ul>"); } else { echo(" <div class=\"menu\"> <ul>"); } $nh = Loader::helper('navigation');
Viewing 15 lines of 65 lines. View entire code block.
That is the code i am using, as you can see i have no idea where the <li> is.
Yeh, i don't understand why it's so hard for the nav area to find thing.
I mean there must be a place where a peice of code is telling it to do the <li> but no where do i see an opening <li>~
I mean there must be a place where a peice of code is telling it to do the <li> but no where do i see an opening <li>~
where would i install your view.php?
Create a directory on your server at YOURSITE/blocks/autonav/, and then save the view.php file I linked to in there.
https://raw.github.com/jordanlev/c5_clean_block_templates/master/aut...
It looks like you've already gotten your template fairly customized so I'm not sure if this will be helpful to you, but if you're stuck you might want to try taking what I've linked to above and putting in your customizations to that. It includes all sorts of extra classes too, so it's very easy to figure out how to get your "drop" class on the appropriate <li> tags.