{"id":50505,"date":"2015-07-13T07:55:30","date_gmt":"2015-07-13T11:55:30","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=50505"},"modified":"2015-07-13T07:55:30","modified_gmt":"2015-07-13T11:55:30","slug":"woocommerce-how-to-manage-tabs-on-the-product-page","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/woocommerce-how-to-manage-tabs-on-the-product-page.html","title":{"rendered":"WooCommerce. How to manage tabs on the product page"},"content":{"rendered":"<p> This tutorial will show you how to manage tabs on the product page in Woocommerce.<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=9S8QwCcKYQE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WooCommerce. How to manage tabs on the product page<\/a>\r\n<p>On the product page you can usually find tabs. In order to edit the existing tabs, you can click <strong>edit the product<\/strong> button:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-1-300x117.png\" alt=\"WooCommerce.-How-to-manage-tabs-on-the-product-page-1\" width=\"300\" height=\"117\" class=\"aligncenter size-medium wp-image-50506\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-1-300x117.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-1-150x59.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-1.png 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p><strong>Description tab<\/strong> displays product description that is set in the content section of the product;<\/p>\r\n<p><strong>Video tab<\/strong> is set with the help of Custom Field called video link &#8211; you can find it in the custom fields block;<\/p>\r\n<p><strong>Reviews tab<\/strong> displays reviews &#8211; you can easily find and manage them in the very bottom on the product page in your dashboard:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-2-300x159.png\" alt=\"WooCommerce.-How-to-manage-tabs-on-the-product-page-2\" width=\"300\" height=\"159\" class=\"aligncenter size-medium wp-image-50507\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-2-300x159.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-2-150x80.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-2-1024x544.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-2.png 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<p>In order to add new tab, you should do the following:<\/p>\r\n<ol>\r\n\t<li><p>Reach files on the server via FTP or hosting cPanel file manager;<\/p><\/li>\r\n\t<li><p>Open <strong>custom-function.php<\/strong> file located in <strong>wp-content\/themex\/themeXXX\/includes<\/strong> folder;<\/p><\/li>\r\n\t<li><p>Add the following code to the bottom of the file right before the closing PHP tag:<\/p>\r\n\t\t\r\n\t\t<pre class=\"brush:php\"> add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );\r\n\t\t\tfunction woo_new_product_tab( $tabs ) {\r\n\t\t\t\r\n\t\t\t\/\/ Adds the new tab\r\n\t\t\t\r\n\t\t\t$tabs['test_tab'] = array(\r\n\t\t\t'title'        =&gt; __( 'New Product Tab', 'woocommerce' ),\r\n\t\t\t'priority'     =&gt; 50,\r\n\t\t\t'callback'     =&gt; 'woo_new_product_tab_content'\r\n\t\t);\r\n\t\t        return $tabs;\r\n\t\t}\r\n\t\tfunction woo_new_product_tab_content() {\r\n\t\t        \/\/ The new tab content\r\n\t\tglobal $post;\r\n\t\t        $custom  = get_post_meta( $post-&gt;ID, 'custom_text', true );\r\n\t\t\t\r\n\t\techo $custom;\r\n\t\t}<\/pre>\r\n\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-3-300x169.png\" alt=\"WooCommerce.-How-to-manage-tabs-on-the-product-page-3\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-50508\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-3-300x169.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-3-150x84.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-3-1024x576.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-3.png 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\t<li><p>Save changes in the file;<\/p><\/li>\r\n\t<li><p>Make sure the modified file has been uploaded to the server.<\/p><\/li>\r\n<\/ol>\r\n<p>New tab content should be added as a custom filed that was created with the php code we added into <strong>custom-function.php<\/strong> file:<\/p>\r\n<pre class=\"brush:php\">\/\/ The new tab content\r\nglobal $post;\r\n        $custom  = get_post_meta( $post-&gt;ID, 'custom_text', true );\r\n\t\r\necho $custom;\r\n}<\/pre>\r\n<p>Where <strong>&#8216;custom_text&#8217;<\/strong> is custom field title.<\/p>\r\n<p>In order to add the text into new product tab, you should do the following:<\/p>\r\n<ol>\r\n\t<li><p>Go to edit the product;<\/p><\/li>\r\n\t<li><p>In <strong>Add New Custom Field<\/strong> block,  please use <strong>Enter new<\/strong> button to add new custom filed:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4-300x113.png\" alt=\"WooCommerce.-How-to-manage-tabs-on-the-product-page-4\" width=\"300\" height=\"113\" class=\"aligncenter size-medium wp-image-50509\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4-300x113.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4-150x56.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4-1024x384.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4.png 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\t<li><p>Type the custom field title added in php code &#8211; in our case it is <strong>custom_text<\/strong>;<\/p><\/li>\r\n\t<li><p>You can find it in the drop down:<\/p><\/li>\r\n\t<li><p>Type your custom text:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4a.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4a-300x171.png\" alt=\"WooCommerce.-How-to-manage-tabs-on-the-product-page-4a\" width=\"300\" height=\"171\" class=\"aligncenter size-medium wp-image-50510\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4a-300x171.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4a-150x86.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-4a.png 840w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n\t<li><p>Update the product to save changes:<\/p>\r\n\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-5-300x171.png\" alt=\"WooCommerce.-How-to-manage-tabs-on-the-product-page-5\" width=\"300\" height=\"171\" class=\"aligncenter size-medium wp-image-50511\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-5-300x171.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-5-150x86.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/WooCommerce.-How-to-manage-tabs-on-the-product-page-5.png 840w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=9S8QwCcKYQE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WooCommerce. How to manage tabs on the product page<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to manage tabs on the product page in Woocommerce.<\/p>\n","protected":false},"author":60,"featured_media":50513,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1556],"tags":[572,542,977,2418],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/50505"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=50505"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/50505\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/50513"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=50505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=50505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=50505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}