Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #681430

    I’m testing out adding the Tabs element to a page here.

    I want to make the tab_title element into an <h2> so I have this as my Tab Title in the Edit Form Element – <h2>Tab 1</h2> – and I get a tab title as an h2.

    Question – is this the way to do this, or is there a better way? Because…

    Problem: Something is adding <br></br> just before the title and a <p></p> after (although this is not active), which does not happen if I just add a word as the title – how can I stop this code being added, because it increases the height of the tab_titles element, which I don’t want. Note Tab3 does not have an <hx> added and it is normal height.

    #682249

    Hey zimbo,

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

                $output .= '
    <div data-fake-id="#'.$tab_atts['custom_id'].'" class="tab '.$titleClass.'" '.$markup_title.'>'.$icon.$tab_atts['title'].'</div>
    '."\n";

    and change it to

                $output .= '
    <h2 data-fake-id="#'.$tab_atts['custom_id'].'" class="tab '.$titleClass.'" '.$markup_title.'>'.$icon.$tab_atts['title'].'</h2>
    '."\n";

    Then refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    Best regards,
    Yigit

    #683256

    Excellent, thank you.

    #683285

    Hey!

    You are welcome! Let us know if you have any other questions or issues!

    Cheers!
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Change tab titles into a heading’ is closed to new replies.