Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add class to ul
#3
(2020-02-04, 02:05:53)Oleg06 Wrote:
(2020-02-04, 01:10:04)tomkow Wrote: Hi
I use this type of navigation:
<?php get_i18n_navigation(return_page_slug(),0, 99,I18N_SHOW_MENU); ?>

I would like to add class="sub-menu" to each UL child menu

    <li>Home</li>
    <li>Services
        <ul class="sub-menu">     //standard is empty <ul>
            <li>Cleaning</li>
        </ul>
    </li>
    <li>Contact</li>


I tried to modify the file \admin\inc\theme_functions.php but I give up!
Any help?

Use rendering
PHP Code:
<?php get_i18n_navigation(return_page_slug(),0,99,I18N_SHOW_MENU'name_component'); ?>

Ok, but what should I add to component?
Reply


Messages In This Thread
How to add class to ul - by tomkow - 2020-02-04, 01:10:04
RE: How to add class to ul - by Oleg06 - 2020-02-04, 02:05:53
RE: How to add class to ul - by tomkow - 2020-02-04, 02:28:38
RE: How to add class to ul - by Oleg06 - 2020-02-04, 02:41:04
RE: How to add class to ul - by tomkow - 2020-02-04, 03:12:52
RE: How to add class to ul - by tomkow - 2022-10-18, 00:32:21
RE: How to add class to ul - by Oleg06 - 2022-10-18, 04:51:49
RE: How to add class to ul - by tomkow - 2022-10-18, 19:54:34



Users browsing this thread: 2 Guest(s)