logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Changing the menu structure

22/02/2025, by Anonymous (not verified)
Forums

Hello everyone.

 

I encountered a problem,

 

In the block, the menu is displayed using the code

 

<?php
     $menu = menu_tree('menu-left');
     echo render($menu);
?>

 

The menu is displayed like this:

 

<ul class="menu clearfix">

<li class="first leaf"><a title="" 
href     ="#"
>     Title</a></li>
          <li class="leaf"><a title
=""      href="#"
>
Title
</
a
>

</li></ul>  I need the output to be like this:
      <ul 
class          ="sidebar-catlist"><li><a href="#">Title<
span     >3</span
>     </a>
          </li><li><a href="#">Title<span
>10     </span>
</
a
>
</li></ul>  Please help with implementing this output