I’m building a website for my business and I’m trying to create a section with three different icons representing different subdivisions.
I have text content below the icons and I would like it to change based on which icon is clicked. Similar section can be seen in this website (scroll down to the “services” part).
I’m a complete beginner and I’m using WordPress with a multipurpose theme called Divi. I guess I could achieve similar results by using jQuery (?). Though, I wouldn’t mind using a plugin if it makes the job easier.
Any help would be greatly appreciated!
3
Answers
edit => As your a beginner you should use a plugin like Bruno Kos suggested, although I will leave my answer up just in case someone else finds it useful
I’m not sure on plugins but in the plain text editor you could try this (its relatively easy to get your head around):
example here http://js.do/code/131702 Go and have a fiddle! Use copy/paste and see if you can add another image and text
Take a look on it: jQuery UI Library and one of the widget inside.
https://jqueryui.com/tabs/
I think you’ll be happy not just by having content inside JS code but toggling visibility of your post/page blocks. It will allows you to have editable easy content.
jQuery UI is popular but you can make it with no extra plugin at all.
As example:
If you need some extra explanation I can update my answer with it.
Since you’re using WordPress, there’s absolutely no need for you to deal with jQuery to have tabs.
An example of plugin you can use for those Tabs is Tabby Responsive Tabs
In any case, Tabs keyword is what you’re looking for, and since you’re saying that you are complete beginner, any free or premium Tabs plugin should do the job for you.