How to Expand WooCommerce Collapsing Categories Sidebar in Flatsome WordPress Theme

When it comes to navigating your site visitors to your desired product categories and subcategories, you should expand WooCommerce collapsing categories and subcategories automatically.

Generally, when you develop your website using the Flatsome WooCommerce theme, you may notice that all WooCommerce Sidebar product subcategories are not collapsed. Like the following screenshot.

 
 
Not Collapsed WooCommerce Product Category
 
 

Website visitors have to expand it on their own. Consequently, many visitors don’t expand the list and leave the site. To keep all WooCommerce product category lists collapsed or expanded in the Flatsome. follow this tutorial. After implementing our guideline, your product categories widget area would like the following screenshot.

 
 
collapse product Category
 
 

How to Expand WooCommerce Collapsing Categories Sidebar in Flatsome

For your convenience, we’ve divided the entire process into simple steps. To get the process, make sure that you’ve got the Flatsome child theme activated. Otherwise, your custom code in the Flatsome parent theme may disappear for the version update. First, You have to know how to create child theme WordPress, Then you can easily get all the settings.

Step 01: Navigate To Global Settings

The Flatsome WooCommerce theme comes with an option called Global Settings. The setting allows you to insert scripts in the Header, Footer, Top of the Body, and Bottom of the Body tag,

To get inside the Global Settings, navigate to Flatsome >> Advanced Settings >> Global Settings.

 
 
Global Settings
 
 

Step 02: Copy JS Code from Gist

Copy the following JS code from Gist

Step 03: Paste JS Code To Header Script Box

Now paste the copied code inside the Header Script box

 
 
 

After adding JS code inside the Header Script box, press the save All Changes button

Conclusion

In this tutorial, you’ve come to know how to expand the WooCommerce sidebar product category widgets list. These tactics will help you to grab your visitor’s attention and allure them to check your available categories by clicking anywhere.

If you need any tutorial on a certain topic related to WooCommerce, let us know in the comment below. We’re waiting to help you out! If this works successfully, don’t forget to check out our other Flatsome tutorials where we’ve kept all our gems! 

Subscribe To Our Newsletter!
Hi, I’m Mohamed. I share delicious recipes that I have cooked and loved. I’ve been food blogging for over 10 years and have a Diploma in Nutrition. You will find many healthy recipes as well as my favourite comfort food on the blog because I believe in a balanced diet.

Related Posts

Fintech’s biggest hits and misses of 2023

As 2023 comes to a close, we’re here to look back at the biggest fintech stories of the year. Silicon Valley Bank’s implosion felt like a fintech…

It’s critical to regulate AI within the multi-trillion-dollar API economy

Alex Akimov Contributor With two decades of tech leadership experience, Alex Akimov, former head of API at Adyen, now revolutionizes embedded finance at Monite by building best-in-class…

EU’s provisional deal on gig worker rights fails to get enough backing from Member States

Not so fast on that Christmas present for precarious gig workers in the EU: A political deal announced mid month, which aims to bolster platform workers rights…

Arduino exploring India manufacturing to limit counterfeit sales

Arduino is considering manufacturing in India. The startup, best known for its open source microcontroller boards, hopes to restrict the rise of counterfeit boards and cater to…

Top robotics names discuss humanoids, generative AI and more

Last month, I took an extended break. In a bid to keep my robotics newsletter Actuator (subscribe here) up and running, however, I reached out to some…

Pornhub owner pays US government $1.8M to resolve sex trafficking probe

Pornhub’s parent company Aylo Holdings will pay $1.8 million to the U.S. government to resolve a charge of profiting off of sex trafficking. The company, formerly known…