Home › Forums › WoodMart support forum › How to add another tab
How to add another tab
- This topic has 7 replies, 2 voices, and was last updated 6 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
September 9, 2018 at 4:23 pm #76224
grzegorzwencParticipantHi 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.jpgSeptember 9, 2018 at 5:49 pm #76227
Artem TemosKeymasterHi,
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
September 9, 2018 at 8:53 pm #76255
grzegorzwencParticipantHi 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)September 10, 2018 at 5:57 am #76271
Artem TemosKeymasterHi,
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
September 10, 2018 at 10:30 am #76323
grzegorzwencParticipantHi, can You show me where to add it or can You do it for me? I can send You access to dashboard.
Thank You
GrzegorzSeptember 10, 2018 at 11:21 am #76331
Artem TemosKeymasterYou can put it to your newly created tab content here https://gyazo.com/e17299f3014605487d8e261fdf4ec6ea
September 11, 2018 at 6:09 pm #76716
grzegorzwencParticipantsorry 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.jpgWhen 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.jpgI dont know what You mean by added code..where is the place to add it?
Thank you for Your help
September 12, 2018 at 6:00 am #76751
Artem TemosKeymasterHello,
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-53. 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
-
AuthorPosts
Tagged: tab
- You must be logged in to create new topics. Login / Register