How to display a product description below price on featured product, but there's a catch...

Highlighted
New Member
2 0 0

I have the Tabs by Station app installed so that tabs show on my product pages. How would I display only the first tab underneath the price on a featured product on my homepage? I dabbled a bit and linked a product description but it listed all three tabs sequentially.

0 Likes
Highlighted
Shopify Partner
54 4 18

That's something you'll want to contact the app creator, but you could use JavaScript to set the visibility on the homepage, something like this

if (window.location.pathname == "/") {  /* check if it is the homepage */
  var allTabs = document.getElementsByClassName("class-of-your-tabs"); /* get all your tabs */
  for (var i = 1; i < allTabs.length; i++) {
    allTabs[i].style.display = "none";  /* hide all tabs excepts the first one */
  }
}

I'm not quite sure what you are trying to do, this is just an example that might get you going. But it's still recommended to contact the app creator about it, they made the thing so they know the best way to do it.

? Like me if I'm Awesome :D
✔️ Accept as Solution if I solved your problem
? Email: anthonykung@hailiga.org
Beaver from Oregon State University
I'm not usually active on forums if you need my attention use mentions @Anthonykung
0 Likes