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.
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
Excellent, thank you.