Custom tabs on product page - by sam86 - on WordPress WooCommerce support

This topic has 10 replies, 3 voices, and was last updated 7 years, 5 months ago ago by Laranz

  • Avatar: sam86
    sam86
    Participant
    May 17, 2017 at 19:58

    I would like to create more custom tabs on the product page. I found the code, but I’m not sure where to implement it in the legenda theme:
    https://docs.woocommerce.com/document/editing-product-data-tabs/

    Or is there any other way I can implement more tabs on the product page?

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 18, 2017 at 09:29

    Hello,

    You need to make changes in child theme function.php to avoid problem with next theme update.
    https://www.8theme.com/demo/docs/legenda/#!/child_theme

    Regards,
    Rose Tyler.

    Avatar: sam86
    sam86
    Participant
    June 20, 2017 at 00:54

    Okay, but what files need to be edited?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 20, 2017 at 08:53

    Hello,

    You need to add the code http://prntscr.com/flw22u into function.php file of your child theme.
    Read more about child theme https://codex.wordpress.org/Child_Themes

    Regards,
    Rose Tyler.

    Avatar: sam86
    sam86
    Participant
    June 21, 2017 at 19:02

    It just adds a static tab that shows the same content on each page. I’m looking to add a second custom tab into the “additional product option” that your theme created.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 22, 2017 at 09:03

    Hello,

    Unfortunately, legenda does not have such possibility by default.

    Regards,
    Rose Tyler.

    Avatar: sam86
    sam86
    Participant
    June 23, 2017 at 23:23

    If you just let me know what file this is I can code it in myself.

    Avatar: laranz
    Laranz
    Participant
    June 26, 2017 at 04:41

    Hi,

    Can you explain this a little bit more? “I’m looking to add a second custom tab into the “additional product option” that your theme created” with a screenshot what you try to create, so that we may guide you the process.

    Let us know,

    Thanks,
    laranz.

    Avatar: sam86
    sam86
    Participant
    June 26, 2017 at 19:19

    I added 2 screenshots that should clarify what I mean.

    Please, contact administrator
    for this information.
    Avatar: laranz
    Laranz
    Participant
    June 27, 2017 at 07:51

    Hi,

    You mean you want your custom tab on the end of the tabs? if so, copy this file, /wp-content/themes/legenda/woocommerce/single-product/tabs/tabs.php and add that inside your child folder in the woocommerce/single-product/tabs folder then edit that according to your needs.

    Let us know,

    Thanks,
    laranz.

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

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

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