This topic has 10 replies, 2 voices, and was last updated 9 years, 3 months ago ago by Eva Kemp
I need to add two new tabs which pull information from the custom_tab2 and custom_tab3 fields, how can i go about this?
I was able to add a single tab via the WooCommerce tutorial but when iadd a second using the same method the theme stops working and i can’t figure how to get the tab to pull from one of the custom fields in the product.
Thanks in advance!
Hello,
Please provide us with FTP and wp-admin panel credentials in Private Content and specify what tab you want to create.
Regards,
Eva Kemp.
Thank you, here you go.
Hello,
You need add content for the tab “Full Ingredient List” in Theme Options > Single Product Page > Return (as I see you’ve added tab title “Full Ingredient List” in there).
As I see you’ve added custom tab code in woo.php file, but it must be added in functions.php file in wp-content/themes/woopress directory as shown in Woocommerce documentation:
http://storage5.static.itmages.com/i/15/0819/h_1439976335_9789899_2de10978ca.png .
Please correct it.
And write tab content in the section echo '<p>Key Ingredients go Here</p>';
instead of “Key Ingredients go Here”.
Regards,
Eva Kemp.
Ok, so what line of code do i put instead of ‘Key Ingredients go Here’ to reference the custom tabs 1 and 2?
Hello,
You need write the content of custom_tab1 or custom_tab_2 in there (the text you want to display in the tab).
Regards,
Eva Kemp.
No, i need the tab to pull the content from the custom tab fields i have for each product. This information is be unique for each product.
I already have the tabs setup in each product i just need to know what line of code i need to add to pull the content from those tabs.
I need to pull the content from custom_tab2 and custom_tab3 respective to the product it’s on.
Thanks in advance.
Hello,
I’ve added this code in functions.php file to show the content of custom tab “Key Ingredients”:
echo do_shortcode(etheme_get_custom_field('custom_tab1'));
Please check it now.
Regards,
Eva Kemp.
Great! That worked, thank you!
Hello,
You’re welcome.
Regards,
Eva Kemp.
The issue related to '‘Adding New Product Tabs’' has been successfully resolved, and the topic is now closed for further responses