WP Manifestindependent plugin directory
manifest / editor / gutenberg-block-text-accordion

Tomodomo › Gutenberg › Text Accordion Block

Simple text accordion for Gutenberg

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/tomodomoco/gutenberg-block-text-accordion/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Text Accordion Block for Gutenberg

A simple text accordion block for Gutenberg, allowing you to create a block of text with a header that can be opened or closd.

accordion___ _mindful_ _wordpress

Installation

When installed from this repo, you must build the JavaScript files.

  1. nvm install
  2. nvm use
  3. npm install
  4. npm run build

Usage

The block is designed to work seamleslsy out of the box; all the CSS and JS you need is included and enqueued.

To dequeue the built-in CSS and/or JavaScript, you can use the built-in filters:

// Don't enqueue the front-end CSS
add_filter('Tomodomo\Gutenberg\Block\TextAccordion\enqueueFrontEndCss', '__return_false');

// Don't enqueue the front-end JS
add_filter('Tomodomo\Gutenberg\Block\TextAccordion\enqueueFrontEndJs', '__return_false');

About Tomodomo

Tomodomo is a creative agency for magazine publishers. We use custom design and technology to speed up your editorial workflow, engage your readers, and build sustainable subscription revenue for your business.

Learn more at tomodomo.co or email us: hello@tomodomo.co

License & Conduct

This project is licensed under the terms of the MIT License, included in LICENSE.md.

All open source Tomodomo projects follow a strict code of conduct, included in CODEOFCONDUCT.md. We ask that all contributors adhere to the standards and guidelines in that document.

Thank you!