Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #203293

    Hi there!
    We would like to have <h4> titles as toggle titles, in our Enfold powered blog.
    Would it be possible?
    Where can we find the related helper or function?

    Thank you!

    • This topic was modified 9 months, 1 week ago by  bitmatters.
    #203534

    Hey bitmatters!

    Open up wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\toggles.php and search for

    
                $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>';
    

    Replace it with

    
                $output .= '        <h4 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></h4>';
    

    Regards,
    Peter

    #222918
    This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Accordion titles as html elements’ is closed to new replies.