How can i add the link-description ( $item->description ) to a child-theme?
i changed the “includes/helper-responsive-megamenu.php”
from this:
…
$item_output .= $args->before;
$item_output .= ‘<a’. $attributes .’><span class=”avia-bullet”></span>’;
$item_output .= $args->link_before . do_shortcode(apply_filters(‘the_title’, $item->title, $item->ID)) . $args->link_after;
if($depth === 0) $item_output .= ‘<span class=”avia-menu-fx”><span class=”avia-arrow-wrap”><span class=”avia-arrow”></span></span></span>’;
$item_output .= ‘‘;
$item_output .= $args->after;
…
to this:
…
$item_output .= $args->before;
$item_output .= ‘<a’. $attributes .’><span class=”avia-bullet”></span>’;
$item_output .= $args->link_before . do_shortcode(apply_filters(‘the_title’, $item->title, $item->ID)) . $args->link_after;
$item_output .= ‘<br><span class=”sub”>’ . $item->description . ‘</span>’;
if($depth === 0) $item_output .= ‘<span class=”avia-menu-fx”><span class=”avia-arrow-wrap”><span class=”avia-arrow”></span></span></span>’;
$item_output .= ‘‘;
$item_output .= $args->after;
…
but thats not updateable.
Hey fritz_enfold!
What do you mean by “not updateable”? You can actually create a copy of the includes folder on the child theme then add the helper-responsive-megamenu.php file inside.
Regards,
Ismael
No. i have create a copy of the includes folder on the child theme then add the helper-responsive-megamenu.php file inside. and uploaded it. but it ignore the modified file from the child-theme incules folder.
Hi!
Refer to Peter response here:
https://kriesi.at/support/topic/child-theme-file-paths/#post-123492
Regards,
Josue