Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitLab with WP-CLI:
wp plugin install https://gitlab.com/grofftech/wordpress/collapsible-content/-/archive/main/collapsible-content-main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Collapsible Content Plugin
A WordPress plugin to show teaser content with an option to show or hide hidden content. Practical examples include Q&A's and FAQ's and more.
Requirements
- Node
- NPM
- Git
- Make
Features
This plugin includes the following features:
- QA Shortcode '[qa]'
- Teaser Shortcode '[teaser]'
- Font icon visual indicator
- Vanilla JS sliding animation
Installation
-
In your terminal, navigate to the
wp-content/pluginsfolder of your project. -
Clone the repository
git clone https://github.com/groffTECH/collapsible-content.git && cd collapsible-content -
Install Composer dependencies
composer install -
Install Node dependencies
npm install -
Build the code
make all -
Login to the admin area your WordPress website.
-
Navigate to Plugins and activate the Collapsible Content plugin.