- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
CherryFramework 4. How to make accordion tab open by default
July 1, 2016
This tutorial will show you how to make accordion tab open by default in CherryFramework 4 based templates.
All the accordion tabs you create with the help of ‘cherry_accordion’ shortcode will be closed by default:

Let’s see how to make any accordion tab open:
Editing existing accordion
Login to the WordPress dashboard;
Open any page that comes with ready-to-use accordion (e.g: FAQs page):
Locate ‘cherry_spoiler title’ shortcodes. Each shortcode represents a separate accordion tab. Locate the tab you’d like to change, e.g:
[cherry_spoiler title="Lorem ipsum dolor sit amet?"]
Add the open="yes" shortcode option into ‘cherry_spoiler title’ shortcode to make accordion tab opened by default:
[cherry_spoiler title="Lorem ipsum dolor sit amet?" open="yes"]
Save the changes;
Refresh your page to see the changes. The tab will be opened by default now:
Creating a new accordion
Create a new page/post;
Click on the ‘Insert Shortcode’ button:
Add the ‘accordion’ shortcode:
Locate the ‘cherry_spoiler title’ shortcodes. Each shortcode represents a separate accordion tab. Locate the tab you want to change, e.g:
[cherry_spoiler title="Spoiler Title"]Content1[/cherry_spoiler]
Add the open="yes" shortcode option into ‘cherry_spoiler title’ shortcode to make accordion tab open by default:
[cherry_spoiler title="Spoiler Title" open="yes"]Content1[/cherry_spoiler]
Use the ‘Live Preview’ button to view the changes and ‘Insert Shortcode’ button to add the shortcode into page/post;
Save the changes. You’ve created a new accordion. The tab will open by default now:
Feel free to check the detailed video tutorial below:
CherryFramework 4 How to make accordion tab open by default