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

    Is there an easy function I can use to change the accordion labels from <p> to <h2> without hacking core code?

    #339025

    Hey Imburr!

    Please go to Enfold/config-templatebuilder/avia-shortcodes and open toggles.php file and find

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

    and change it to

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

    then see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Cheers!
    Yigit

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