WebsiteBaker Support (2.12.x) > General Help & Support

Question about "sticky" option of menu within SM2 in WB

<< < (2/3) > >>

rumen:
Yep! Now the "sticky" function works. Only the dropdown should be fixed. I can upload it like that now the full here (as template with index.php, info.php, CSS and JS) so everyone can download, but need to fix the dropdown. I have no idea why doesn't work. Probably some of the classes ... The CSS is based on "foundation" and it is full - has grid, buttons, tables etc ... need small customization as needs of the site.

rumen:
Attached the template. Only dropdown doesn't work. If anyone find the problem - please share to correct.

Thanks dbs for the help!

Appreciate!

Regards,

Rumen

dbs:
You have a link to the original site where dropdown works?
For me it looks like no function for dropdown is implemented.
Only sticky menu is present. And a toggle class for the mobile menu button.

rumen:
Line 2158 to 2408 in the CSS file - foundation.css (attached in the zip file I uploaded early) is the dropdown menu. Active with <li>

dbs:
Try this (seen here https://get.foundation/sites/docs/dropdown-menu.html)
           
--- Code: --- <?php 
            $open = '<li class="[class]"><a href="[url]">[menu_title]</a>';
            
            echo show_menu2(
                $aMenu          = 1,
                $aStart         = SM2_ROOT+$iMultiLang, 
                $aMaxLevel      = SM2_CURR+2,
                $aOptions       = SM2_ALL,
                $aItemOpen      = $open,
                $aItemClose     = '</li>',
                $aMenuOpen      = '<ul class="menu">',
                $aMenuClose     = '</ul>',
                $aTopItemOpen   = false,
                $aTopMenuOpen   = '<ul class="dropdown menu" data-dropdown-menu>'
            );?>
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version