In Divi theme, there are different modules available and we can use them directly with shortcodes without letting the divi builder to load, i.e. we can use any module of divi with the shortcodes in simple text editor. Here is the Accordion Module’s Shortcode:-

 

Accordion Module's Shortcode

Where

admin_label in et_pb_accordion = label for accordion module.

use_border_color = this specify whether you want to use border around the accordion module items, on for yes and off for no.

border_color = it determines the border color.

border_style = it determines the border style i.e. none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset, initial, inherit.

title in et_pb_accordion_item = it determines the accordion item’s title.

THIS IS ITEM ONE’S CONTENT = this is the actual content you want to show in an accordian’s item.

 

Important Notes

  • The shortcode for any particular module of divi will only works when divi is activated as your current theme.
  • Tested on Divi version 2.7.4
Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

You have Successfully Subscribed!

Share This