Need help to make product description tabs in Shopify with out APP. Just to using heading tags i.e. H4 and h5.
I don’t want to use html code in description area.
Need help to make product description tabs in Shopify with out APP. Just to using heading tags i.e. H4 and h5.
I don’t want to use html code in description area.
3
Answers
Thanks for all for your help. But i have created a proper solution i hope it will help.
In the {% section 'product-template' %} file find the following code:
{{ product.description }}
Replace it with:
{"type": "checkbox", "id": "enable_description_tabs", "label": "Enable Description Tabs", "default": true, "info": "Heading 6 titles will be converted to tab headings, tab content will be everything between the Heading 6 titles." }
Now in Shopify product description assign h6 for the heading and on the next line put the content.
Make description as heading
Add h6 tag for heading
I Hope this will also be helpful for other.
It can be done, however it’s a bit hacky.
<!--split-->
, this comment should be at the beginning of each tab, make sure you add your content in editor HTML modedescription_tabs
to render each content blockYou gonna have to write some html/css/js to make this work but this liquid code should get you up and running.
Good luck!
Step 1: Open the product editor in your Shopify Dashboard
After opening up the product you want to edit, click the "View HTML" button over the top right corner of the text area.
https://cdn.shopify.com/s/files/1/0783/2131/files/shopify-tabs-minimal-theme-1.jpg?4235358175750708465
Step 2: Paste this code into the product descriptio
https://cdn.shopify.com/s/files/1/0783/2131/files/shopify-tabs-minimal-theme-2.jpg?8632844864695689229
Your product should now look something like this:
Step 3: Edit the labels and content for each tab
I highly recommend editing the labels and content from within the HTML editor, rather than using the visual editor. This is because the visual editor tends to mess up the HTML code that you pasted in.
Step 4: Save
Click "Update" or "Save" to save the changes you made to the product. Then go ahead and view the product on your website to make sure the tabs are showing up properly.
I hope that went smoothly for you! If you had any problems, please leave a comment below with a description of the problem and I’ll do my best to help.