Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #930463

    Hello, for SEO proposals, I would like to have the title in the toggles to be an h3 title, is it possible?
    Thank you

    #930485

    Hey carmen,

    Yes it’s possible, first you need to use a child theme: https://kriesi.at/documentation/enfold/using-a-child-theme/
    Then we need to replace/tweak the toggler/accordion, just follow the instructions in: https://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
    Copy toggles.php located in enfold > config-templatebuilder > avia-shortcodes then paste in the shortcodes folder of the child theme, then edit the file in the child theme and look for this code (line 397-398):

    $output .= '        <p data-fake-id="#'.$toggle_atts['custom_id'].'" class="toggler '.$titleClass.$inherit.'" '.$markup_title.' '.$colors.'>'.$toggle_atts['title'].'<span class="toggle_icon" '.$icon_color.'>';
    $output .= '        <span class="vert_icon"></span><span class="hor_icon"></span></span></p>';

    replace it with:

    $output .= '        <h3 data-fake-id="#'.$toggle_atts['custom_id'].'" class="toggler '.$titleClass.$inherit.'" '.$markup_title.' '.$colors.'>'.$toggle_atts['title'].'<span class="toggle_icon" '.$icon_color.'>';
    $output .= '        <span class="vert_icon"></span><span class="hor_icon"></span></span></h3>';

    Hope it helps :)

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.