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:-
[et_pb_accordion admin_label="Accordion" use_border_color="off" border_color="#ffffff" border_style="solid"]
THIS IS ITEM ONE’S CONTENT
THIS IS ITEM TWO’S CONTENT
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.
More from my site
- 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