• blog
  • Build an Accordion Without JavaScript

October 7,2021

Build an Accordion Without JavaScript

byIsev Team Isev Team

accordion-v2
In the pursuit of web performance, we are all looking to come up with clever solutions to make our websites load faster. One way many of us do this is coming up with and stealing (which in this case, the latter is more appropriate) ways of writing less JavaScript.

Many websites I work on include an FAQ section, and nine times out of ten I end up building some form of accordion. But recently I saw a method of building a mobile menu without the use of JavaScript, and I wondered if I could use the same method to build an accordion.

See the Pen Building an Accordion without JavaScript – Part I by Michael (@mjtweaver) on CodePen.

The above pen really simply demonstrates how we can achieve this. We use the label to use as the question, and we also include a checkbox. The checkbox is hidden from view. When we click on the label, it checks the input and then we can use this to display the answer. You’ll notice here we use the general sibling combinator or ~. I wrote some more information on this here. The above example was very simple, how about a styled up version?

After searching on Google, I know others have also used this solution in the past, so it may not be new to you, but it would interesting to get your thoughts.

As a note on browser compatibility, the only thing you have to really consider is the general sibling selector, information can be found here.

Continue Reading

Editing Magento 2 Mega Menu with Venustheme

To edit your the Mega Menu, using the Venustheme extension in Magento 2 To get to the menu, you will need to go to the lef thand navigation and Venustheme > Manage menus. Select menu you want to edit. If you have a separate mobile and desktop menu, they will both need to be updated. … Continued

Isev Team
Isev Team June 23rd, 2025
Upgrading Magento 2.4.5 to 2.4.6

Magento is one of the most powerful and flexible ecommerce platforms available. For store owners currently on Magento 2.4.4, moving to version 2.4.6 is more than just a recommended upgrade—it’s a necessary step to keep your business safe, compliant, and competitive in an evolving digital environment.

Isev Team
Isev Team June 11th, 2025
Can You Build a Website with Magento?

Magento is a powerful and flexible platform that allows businesses to create online stores tailored to their businesses. So, can you build a website with Magento? Absolutely. The more important question should instead be: what does it take to build one? Whether you’re a developer planning to work with Magento or a business owner considering … Continued

Isev Team
Isev Team May 14th, 2025
What Does a Magento Developer Do?

A Magento developer is more than just a coder — they’re a critical piece in building a successful ecommerce store.

Isev Team
Isev Team April 29th, 2025