/structured-content-plugin-enhancer

This plugin is an extension of "Structured Content (JSON-LD) #wpsc" to change its layout to Collapsable section by adding css class

Primary LanguageCSS

Structured Content Plugin Enhancer

Contributors: gulariav
Version: 1.1.1
Tags: structured-content, collapsible-div
Requires at least: 3.5
Tested up to: 5.0.3
License: GPL v2 or later

Description

This plugin is an extension of "Structured Content (JSON-LD) #wpsc" to change its layout to Collapsable section by adding this css class to it "collapsible-faq". Also provide options to make any div collapsible.

https://wordpress.org/plugins/structured-content/

Usage

How to make structured content output collapsible

To make any structured content output collapsible, add this class "collapsible-faq". See example below:

[sc_fs_faq sc_id="fs_faqa9dmd5mzj" html="true" headline="h2" img="" question="Example Heading of FAQ" img_alt="" css_class="collapsible-faq" ]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed in risus sed erat malesuada aliquet vel vel lorem. Etiam eget vehicula nisl, at imperdiet mauris. Suspendisse aliquet dictum neque id condimentum.[/sc_fs_faq]

How to make a div collapsible

To make any div collapsible, add elements in this format.

<div class="faq-btn">Title</div>
<div class="faq-data">Description</div>

Changelog


1.1.1

Added support for expand without fontawesome.
Changed toggle class to active in js file.
Readme file update

1.0.4

Changed the hook to add the scripts.
Lower the priority to add the js, so that it loads in the end.
updated js file for jQuery default method
Readme file update

1.0.3

Added Support for fontawesome 4.x
Readme file update

1.0.2

Moved script to load in footer
Readme file update

1.0.1

Update plugin URI in plugin header
Readme file update

1.0.0

Initial Release