Thank you for the speedy reply and for the jQuery alternative on CodePen.
I did some more testing, with some other themes that use SmoothScroll, and found that the tabbed
widget worked, but the SmoothScroll got all messed up.
Which means that the West Pro theme is not at fault here.
Phew. I’m glad.
Both me and my client like the West Pro theme very much, and seeing that a plugin seemed to work fine in other themes, but not in West Pro, was a bit disheartening, before looking deeper into it.
In the meantime, I’ve found an alternative, by using the ‘jQuery UI widgets’ , a free WP plugin, which
has been around for a while now. It uses the tabs provided with jQuery UI, which ships natively with WordPress. Once the tabs are enabled in the plugin, I just copied the sample HTML code for the tabs from jQueryUI website, and pasted it in a text widget in WordPress.
It seems to work fine, and it doesn’t seem to cause conflict with the SmoothScroll, on West Pro.
However, it also relies on IDs in hrefs, so I’m a bit puzzled here. Perhaps I will run into a problem with it later …
So, just in case, I will try to implement the code that you suggested, on CodePen.
I think - to implement it in WordPress, I would need to first enqueue the
create a text widget that will contain the HTML part of the code.
I know it needs to be enqueued in the functions.php, but it would save me some time, and some guesswork, if you could please provide the snippet for that.
The rest, I’m pretty sure, I can do alone.
Thanks a bunch,