![]() |
|
printCustomMenu with class ul element - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: printCustomMenu with class ul element (/thread-13221.html) |
printCustomMenu with class ul element - davidarnoult - 2019-03-30 Hi, I would like to use menu_manager extension function to create a navbar for bootstrap.
... [/code] However printCustomMenu only offers the possibility to specify en id of the ul. I tried this: [/code] Which produces:
[/code] Thanks David printCustomMenu with class ul element - acrylian - 2019-03-31 I fear not without modifying There is simply no class setup for the ulsince you technically can achieve everything by using the css cascade. Nowadays I would not use an id but changing this will result in compatibility issues naturally. You could add a class via JS but not sure if that can be considered reliable. printCustomMenu with class ul element - vincent3569 - 2019-03-31 are you using zpBootstrap? printCustomMenu with class ul element - davidarnoult - 2019-04-01 Hi! @acrylian: Thank you, it is clear. How can I create /xclass my own version of it? Do I need to copy it in functions.php of my theme? @vincent3569: Yes, I tried your theme which is very good indeed. Actually I am working on my own theme based (simpler one) including bootstrap v4 and wish to support menu_manager plugin too. If you work on this feature, I will obviously keep an eye on your development or we could share some work too? printCustomMenu with class ul element - acrylian - 2019-04-02
Yes, copy the function to your theme's functions.php and rename it. Also add a check that the plugin is enabled so the site does not directly break if not. printCustomMenu with class ul element - vincent3569 - 2019-04-02 @davidarnoult printCustomMenu with class ul element - davidarnoult - 2019-04-04 Thank you both for your support. I will check and test it when I will find some time... printCustomMenu with class ul element - vincent3569 - 2019-05-29 hi printCustomMenu with class ul element - acrylian - 2019-05-29 Btw, a good solution to workaround the missing class on the menu
printCustomMenu with class ul element - vincent3569 - 2019-05-29 I use a printCustomMenu with class ul element - acrylian - 2019-05-29 @vincent3569 Good! It was just a follow up suggestion that we don't really need to add yet another parameter to the main menu function. |