“Unleash Your Inner Musician: Learn the Ultimate Guide on Creating an Accordion in WordPress!”

How to Create an Accordion in WordPress

Accordions are a popular way of organizing content on a webpage. They provide a clean and manageable solution that avoids overwhelming visitors with too much text or clutter. In this article, we explore three methods of creating an accordion in WordPress:

Method 1: Creating Accordion with a Plugin

Plugins make it easy to create accordions on WordPress without any coding experience. Two popular plugins are:

Accordion plugin by PickPlugins

This user-friendly plugin offers unique styling options for your accordion. Follow these steps to use it:

  1. Install and activate the Accordion plugin by PickPlugins.
  2. Select “Accordion” and then click “Add New.”
  3. Add the name of your accordion item in the “Accordion Title”.
  4. Type in the information you want to display in the “Content” section.
  5. Customize your accordion by choosing a style, width, and color in the “Options” section.
  6. Click “Publish.”

Shortcode Ultimate plugin

This plugin has an extensive range of customization options and is beginner-friendly. Follow these steps to use it:

  1. Install and activate Shortcode Ultimate plugin
  2. Select “Shortcode” and then “Add New.”
  3. Choose “Accordion” from the list of available shortcodes.
  4. Add the title and content you want to display.
  5. Customize the accordion with various available options like the color, font size, and border settings.
  6. Click “Publish.”

Method 2: Creating Accordion without a plugin

If you do not want to add more plugins to your WordPress site, follow this manual coding process:

  1. Create a new page in WordPress.
  2. Paste the accordion code into the new page.
  3. Replace the content in the code with yours.
  4. Add the following CSS code into the style.css file:
/* Styling */
button.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;

button.accordion:hover {
  background-color: #ddd;

button.accordion:after {
  content: '\02795';
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;

button.accordion.active:after {
  content: "\2796";

div.panel {
  padding: 0 30px;
  background-color: white;
  display: none;

div.panel.show {
  display: block;

Method 3: Creating Accordion using shortcodes

Using shortcodes is another easy way of creating an accordion in WordPress:

  1. Create a new page in WordPress.
  2. Enter the following shortcode:
[accordion-item title="Accordion Title"] Accordion Content goes here [/accordion-item]
[accordion-item title="Accordion Title 2"] Accordion Content goes here [/accordion-item]
[accordion-item title="Accordion Title 3"] Accordion Content goes here [/accordion-item]
  1. Customize the accordion as desired.
READ MORE  "Unleash your Job Hunting Potential with this Simple Trick of Showcasing Your Resume on Wordpress!"


Creating accordions can add functionality and style to your WordPress site’s pages. Plugins, manual coding, and shortcodes offer easy solutions for adding accordions to your webpages. We hope this article helps you create stylish and informative website content for your visitors with ease.

Leave a Reply

Your email address will not be published. Required fields are marked *