Announcement

Collapse
No announcement yet.

How to remove tab title duplicate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to remove tab title duplicate

    I can't remember how to remove a tab title from the text area, just to tidy it up really. no other reason - thanks

    Click image for larger version

Name:	duplicated.jpg
Views:	99
Size:	22.5 KB
ID:	557526
    www.devotedly-discus.co.uk

    #2
    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
    John Ennals
    www.tortoys.co.uk

    Comment


      #3
      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
      {Dimensions} becomes the tab name and the <h3> in the tab content
      (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>';
      }
      Your tab content des not start with e.g. <h3 class="tabsub"> ... </h3> so the <h3> is the $tabname

      Code:
      <h3>' . $tabname . '</h3>
      Line 134 of Swift Tabbed Product Description JC

      Code:
      $tabtext = '<h3>' . $tabname . '</h3><p>' . $tabtext . '</p>';
      Change to

      Code:
      $tabtext = '<p>' . $tabtext . '</p>';
      Apply, OK and publish.

      This will do it on ALL tab contents in all products...

      Click image for larger version  Name:	tabberh3.jpg Views:	0 Size:	108.7 KB ID:	557540
      Jonathan Chappell
      Website Designer
      SellerDeck Website Designer
      Actinic to SellerDeck upgrades
      Graphicz Limited - www.graphicz.co.uk

      Comment


        #4
        Thank you Jonathan - no doubt you was was waiting for the phone to ring since posting this......

        All good now
        www.devotedly-discus.co.uk

        Comment


          #5
          You know how it's done now!
          Jonathan Chappell
          Website Designer
          SellerDeck Website Designer
          Actinic to SellerDeck upgrades
          Graphicz Limited - www.graphicz.co.uk

          Comment

          Working...
          X