Announcement
Collapse
No announcement yet.
How to remove tab title duplicate
Collapse
X
-
Thank you Jonathan - no doubt you was was waiting for the phone to ring since posting this......
All good now
Leave a comment:
-
You use Norman's Tabber adapted for Swift Mark.
The Tab Names are defined in Product Description thus:
Code:{Dimensions} - Width - 28 cm - Height - 35 cm includes bracket. - Depth - 15 cm - Weight (with cartridges installed) 2.530 kg
(Swift Tabbed Product Description JC)
Code:// The tab content // if tab content starts with e.g. <h3 class="tabsub"> ... </h3> then use it as sub-heading if ( preg_match('/(^\s*<h\d>)(.*?)(<\/h\d>)(.*)/is', $tabtext, $bits) ) { $tabtext = $bits[1] . $bits[2] . $bits[3] . '<p>' . $bits[4] . '</p>'; } // otherwise just use tab name else { $tabtext = '<h3>' . $tabname . '</h3><p>' . $tabtext . '</p>'; }
Code:<h3>' . $tabname . '</h3>
Code:$tabtext = '<h3>' . $tabname . '</h3><p>' . $tabtext . '</p>';
Code:$tabtext = '<p>' . $tabtext . '</p>';
This will do it on ALL tab contents in all products...
- 2 likes
Leave a comment:
-
You should find these headings wrapped in <h3></h3> tags in the Customisable Product Layout. First one will be a couple of lines under <div class="tab-content">.
John
- 1 like
Leave a comment:
-
Leave a comment: