This topic has 22 replies, 2 voices, and was last updated 6 years, 4 months ago ago by Rose Tyler
Hi,
May I ask how can I make something like the screenshots show? Please see the attachments.
Attachment:
https://prntscr.com/j6ur68
https://prntscr.com/j6uquv
https://prntscr.com/j6uqu3
Hello,
Theme Options > E-commerce > Single Product Page > Tabs type > Default http://prntscr.com/j6uwpw
and delete
.single-product .wc-tabs {
display: none;
}
from Theme Options > Styling > Custom css.
Regards
Hi,
I did what you say, but the single product page became like this, may I know what happened? How can I fix it?
Please see the attachment: https://prnt.sc/j6v4w8
Please set 4 in Theme Options > E-commerce > Single Product Page > Number of slides per view.
Regards
Hi,
I deleted the code and cleared the cache, but I still cannot see something like this: https://prntscr.com/j6ur68
What can I do?
Hello,
Here are your tabs http://prntscr.com/j6wgdt
Do you want to change stylings of tabs, add more tabs or something else? The style of these tabs can be changed using custom css code. Please describe in details the desired result.
Regards
Hi,
May I ask why there are some devices cannot show the tabs but some can?
Please see the attachment: https://prntscr.com/j876g5
Hi,
Would you mind to support me on adding more tabs(https://prnt.sc/j8u9kb)? How can I add tabs that are located above the description?
Best regards,
Ejder
Hello,
Theme Options > E-commerce > Single Product Page > Custom Tab Title and Custom tab content.
Also, you can use this code https://docs.woocommerce.com/document/editing-product-data-tabs/ in functions.php of child theme.
Regards
Hi,
I am able to add a tab by Theme Options > E-commerce > Single Product Page > Custom Tab Title and Custom tab content, but what if I want to add more than one tabs? Must I add it in functions.php of child theme?
Hello,
If you want more tabs, please use this snippet http://prntscr.com/k4ql45 in functions.php of your child theme.
Regards
Hi,
Can I use WPBakery Page Builder to edit the content of the tab? Or I can only edit the content by the plugin snippet?
Hello,
If you use the custom code to add more tabs, you need to add desired content into functions.php file.
Also, there is possibility to create custom tab for separate product via [8theme] Product Options http://prntscr.com/k521we
Regards
OK, I will try, thank you.
You’re welcome. Feel free to ask if you have any other questions.
Regards
Hi,
I changed the name of the description tab to “FAQ” (https://prntscr.com/k5fqi2)
Then I created one new tab called “Test1” (https://prntscr.com/k5fqyg)
It was fine until I create one more new tab:
I tried to create one more tab called “Test2” (https://prntscr.com/k5fpf3)
But when I tried to save it, the page says there is an error (https://prntscr.com/k5fpjw), may I ask how can I fix it?
Best regards,
Ejder
Hello,
Please note that add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );
can be used in functions.php file only once.
Here is an example of code to add 2 tabs:
http://prntscr.com/k5ib0j
add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );
function woo_new_product_tab( $tabs ) {
// Adds the new tab
$tabs['test_tab'] = array(
'title' => __( 'New Product Tab', 'woocommerce' ),
'priority' => 50,
'callback' => 'woo_new_product_tab_content'
);
$tabs['test_tab2'] = array(
'title' => __( 'New Product Tab 2', 'woocommerce' ),
'priority' => 20,
'callback' => 'woo_new_product_tab_content2'
);
return $tabs;
}
function woo_new_product_tab_content() {
// The new tab content
echo '<h2>New Product Tab</h2>';
echo '<p>Here\'s your new product tab.</p>';
}
function woo_new_product_tab_content2() {
// The new tab content
echo '<h2>New Product Tab2</h2>';
echo '<p>Here\'s your new product tab contnent for 2nd tab.</p>';
}
Regards
Hi,
May I ask how can I insert this “Process element” (https://prntscr.com/k5n4yw)/(https://prntscr.com/k5n550) into the tab that I created (https://prntscr.com/k5fqyg)?
Hello,
You can create a static block https://www.8theme.com/documentation/xstore/support/static-blocks/ with desired content and use this code in functions.php – echo do_shortcode('[block id=""]');
(https://prnt.sc/k5xeq8 > http://prntscr.com/k5xfk2).
Regards
Great! I can do it! Thank you for your help!
Hello,
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up