Home Forums WoodMart support forum Additional TAB

Additional TAB

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #391035

    aleksandreeu
    Participant

    Hi, I would have 2 questions:

    At the product page, I need to add+1 additional tab. I added it (screenshot), but
    1) I dont know how to add text there ?
    2) How can I move it, to have ETIKETA and after HODNOCENI ?

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #391053

    aleksandreeu
    Participant

    P.S. I need different info (text/pictures) in each tab in different products.

    #391099

    Luke Nielsen
    Member

    Hello,

    1. I suggest you create an HTML block and define it in the “Content type” area.

    https://prnt.sc/64zur_dxxtu3

    The HTML block you can create via Dashboard -> HTML Blocks.

    2. To reorder the “Additional tab”, please enter the below code to the functions.php file in your child theme.

    if ( ! function_exists('wd_reorder_tabs' ) ) {
    
        function wd_reorder_tabs( $tabs ) {
            $tabs['wd_additional_tab_2']['priority'] = 15;
    
            return $tabs;
        }
    
        add_filter( 'woocommerce_product_tabs', 'wd_reorder_tabs', 98 );
    }

    In the meantime, feel free to ask me any questions you may have.

    Kind Regards

    #391100

    aleksandreeu
    Participant

    Thanks. And where can I add info (text/img) in the new tab for each product?

    #391114

    Luke Nielsen
    Member

    Hello,

    The “Additional tab” that you use works globally for all products, or rather you just need to create an HTML block (edit it via page builder and add there some content via Dashboard -> HTML Blocks https://prnt.sc/TKmA8nBf0hhp ) and define it in the “Content type” area.

    https://prnt.sc/76_aLWELXFDq

    If you want different content for each product, I suggest you create a custom tab via the settings of the product (Dashboard -> Products).

    Also for the “Custom tab content” area, you need to add your HTML block with appropriate content that will be shown there.

    https://prnt.sc/F4DyAdYpc2z-

    https://prnt.sc/pTEydqREGwkT

    Here is documentation on how to use HTML blocks:

    https://xtemos.com/docs-topic/html-blocks-usage/

    Kind Regards

Viewing 5 posts - 1 through 5 (of 5 total)