Product tab is closed by default but I can't collaps them.

This topic has 8 replies, 2 voices, and was last updated 8 years, 8 months ago ago by Eva Kemp

  • Avatar: glenngtr
    glenngtr
    Participant
    August 20, 2015 at 14:34

    Hi Eva,

    Sorry to post a new topic, but I couldn’t reply to the previous topic anymore as the thread was close (I guess). However, I deleted the code on line 45 <?php if($i == 1) echo ‘style=”display:block;”‘; ?> and fixed the tab, because it is closed by default now.

    The only problem that arises now is that I can’t see the contents anymore. It doesn’t open or close at all.

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    August 20, 2015 at 15:17

    Hello,

    Please provide us with FTP credentials.

    Thank you.

    Regards,
    Eva Kemp.

    Avatar: glenngtr
    glenngtr
    Participant
    August 21, 2015 at 08:14

    Here you go:

    By the way: If changes are made in the tab.php file is this then lost when I update the theme or woocommerce?

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    August 21, 2015 at 09:20

    Hello,

    I’ve moved tabs.php file to woopress-child/woocommerce/single-product/tabs directory as you have child theme activated and removed the code <?php if($i == 1) echo 'style="display:block;"'; ?>. Please clear browser cache and check the tabs now. The changes won’t be lost after update because the file is located in the child theme directory.

    Regards,
    Eva Kemp.

    Avatar: glenngtr
    glenngtr
    Participant
    August 21, 2015 at 10:39

    Thanks Eva,

    The first tab opens but the accordeon effect is lost so the content of the first tab goes beyond/over the second tab. Also I don’t like that you see two horizontal lines instead of neatly divided tabs by a single line.

    For the extra tabs I use the plugin sb_add_woocommerce_tabs.php. Maybe this has something to do with it?

    Avatar: Eva
    Eva Kemp
    Support staff
    August 21, 2015 at 11:29

    Hello,

    Concerning the borders add this code in child style.css:

    .tabs-after_image .tabs.accordion .tab-title.opened::before {
      display: none;
    }
    .tabs-after_image .tabs.accordion .tab-title.opened {
      border: none;
    }

    The tabs content issue will be fixed in the next theme update.
    Sorry for inconveniences.

    Regards,
    Eva Kemp.

    Avatar: glenngtr
    glenngtr
    Participant
    August 21, 2015 at 11:33

    Okay thanks for you help so far. Hope the new update will appear soon!

    Avatar: Eva
    Eva Kemp
    Support staff
    August 21, 2015 at 11:36

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.