Home Forums WoodMart support forum How to add another tab

How to add another tab

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #76224

    grzegorzwenc
    Participant

    Hi I would like to add a new tab here e.g. contact form.
    How I can do it?

    please check screenshot
    https://snag.gy/BvbFS6.jpg

    #76227

    Artem Temos
    Keymaster

    Hi,

    Here is an article from WooCommerce documentation that may help you customize your product page tabs https://docs.woocommerce.com/document/editing-product-data-tabs/

    Regards

    #76255

    grzegorzwenc
    Participant

    Hi Thank you, I added it.
    how about to edit it with deafoult text or add a contact form?

    I cannot do it with page builder as i can do it with descritpion

    https://snag.gy/j9tNqs.jpg (my new tab)
    https://snag.gy/yXxFZw.jpg (description tab)

    #76271

    Artem Temos
    Keymaster

    Hi,

    You can create an HTML block in Dashboard and then put its shortcode to that tab content with the following PHP code

    <?php echo do_shortcode('[block id="1111"]'); ?>

    Regards

    #76323

    grzegorzwenc
    Participant

    Hi, can You show me where to add it or can You do it for me? I can send You access to dashboard.
    Thank You
    Grzegorz

    #76331

    Artem Temos
    Keymaster

    You can put it to your newly created tab content here https://gyazo.com/e17299f3014605487d8e261fdf4ec6ea

    #76716

    grzegorzwenc
    Participant

    sorry but i dont get it.
    What I need to click on my my product page and go to description in page builder I can easily add some text, video, new row etc.
    https://snag.gy/akeu7R.jpg

    When I click on new tab I have no chance to add some information by page builder. Where can I edit it?
    https://snag.gy/TpVoj8.jpg

    I dont know what You mean by added code..where is the place to add it?

    Thank you for Your help

    #76751

    Artem Temos
    Keymaster

    Hello,

    1. Firstly, create an HTML Block in Dashboard -> HTML Blocks with WPBakery and add any content you need. Copy this block’s shortcode.

    2. Follow this article and put the code for adding new tab to the functions.php file in your child theme https://docs.woocommerce.com/document/editing-product-data-tabs/#section-5

    3. Instead of these lines

    	echo '<h2>New Product Tab</h2>';
    	echo '<p>Here\'s your new product tab.</p>';

    put your block’s shortcode like this

    echo do_shortcode('[block id=""]');

    Regards

Tagged: 

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