1. Oliver
  2. Sherlock Holmes The Voice
  3. Commercial Templates
  4. Thursday, 30 October 2025
  5.  Subscribe via email
Hello Ciaran,
today I added some submenu items to a main menu item.
If the sub menu items are of type menu-alias, url or divider I do not get the parent-indicator j51-inline-icon on the main menu item.
I attached a screenshot.
On "Leistungen" you see no arrow on the right of the word but on "Unternehmen" tehre is this icon.
How can I change this? I tried to set the classes to link or icon but that did not work.
Thanks in advance for any help or idea.
Regards
Oliver
Attachments (1)
References
  1. https://valoris-immo.de/
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,
I found a solution by myself - sometimes creativity hits me :D :D .

I changed default_component.php and default_url.php in the overwrite folder and now all menu items that have sub-menu items show the parent-indicator.

E.g. in default_component.php I added this at line 63:

// Parent-Indicator hinzufügen, wenn Untermenü vorhanden
if ($item->deeper) {
$linktype .= '<span class="parent-indicator j51-inline-icon" aria-hidden="true"><svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"></path></svg></span>';
}


You can close the thread, thank you :)
Regards
Oliver
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!