Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Access tabs directly via URL

$
0
0

Replies: 0

I would like to be able to link users from the Product short description to a tab on the same WC Product page.

My goal is a link to the tab on the same page – as opposed to linking to a tab from an outside page.

A simple traditional anchor doesn’t work for me. Then I added the code provided here: https://yikesplugins.com/support/knowledge-base/how-can-i-access-my-tabs-directly-via-url/

I updated lines #16 and #29 as indicated at the bottom of that page.

When clicking the link, the page does not scroll to the tab.

If I reload the page with the tab name appended to the URL, the tab content is appropriately visible. https://mediacafe.co/shop/printing-services/brochures/#tab-using-your-own-art

Is it possible to for this to function more like a traditional anchor being used on-page?

Thank you.


Viewing all articles
Browse latest Browse all 59525

Trending Articles