Found Image http://plugins.svn.wordpress.org/otfm-gutenberg-spoiler/assets/icon-256x256.png OtFm Gutenberg Spoiler – (or FAQ) collapse block | Plugin Review Network Skip to Content

Plugin Review Network

Plugin Review Network

an eye on the best wordpress plugins
Show Sidebar Hide Sidebar
[+] Sidebar [-] Sidebar
Plugin:

WP.Org

ReadMe

Support

OtFm Gutenberg Spoiler – (or FAQ) collapse block

Released on September 12, 2018.

The plugin provides in the block editor 2 types of spoilers. Need FAQ or Spoiler?

  • Description
  • FAQ
  • Changelog
  • Installation
  • Screenshots


WordPress 5.0 introduces a block-based editor (codename "Gutenberg") that offers a streamlined editing experience. The plugin provides in the block editor 2 types of spoilers:

  • Little Spoiler
  • Box spoiler

Little Spoiler - small spoiler for plain text.

Box spoiler - consists of 2 blocks: Opening spoiler (Box Spoiler Start) and closing spoiler (Box Spoiler End) Between them, you insert any block (or several block's) with content that you want to hide.

In the frontend, the spoiler (accordion) opens with animation. In the editor you can choose the color design of the spoiler.

Ability to add new colors or replace a set of colors. See FAQ

Want to hide part of the publication? or make up the FAQ? - plugin is perfect for this

Check out all beauty and power of the plugin by watching this video: [youtube https://www.youtube.com/watch?v=IrC1yVttMho]

Accessibility support? Navigation by tab?

Yes! Navigation by "Tab" button: The "Up arrow" key pressed - If the focused spoiler is open, you close it The "Down arrow" key pressed - If the focused spoiler is closed, you open it Either the "Enter" key or "Space bar" pressed - You toggle the focused spoiler. If it is open, close it; if it is closed, open it. The "End" key pressed - You move focus to the last spoiler on the page The "Home" key pressed - You move focus to the first spoiler on the page

Support screen readers

How can I close a lot of blocks?

  1. find "Box Spoiler Start" and paste (spoiler open)
  2. blocks, blocks, blocks...
  3. find "Box Spoiler End" and paste (this spoiler closed)

How can I add my own color?

Add this snippet to your file functions.php:

// add new colors to spoiler
function otfmgs_add_new_colors($colors){
    $colors[]= array( 'color' => '#bd4747', 'name' => 'my_brown' );
    $colors[]= array( 'color' => '#32dd94', 'name' => 'my_green' );
    //... etc

    return $colors;
}
add_filter('otfmgs_colors','otfmgs_add_new_colors');

where: #bd4747 - new hex color

result: https://yadi.sk/i/223x_1-S3e_H1w

(available from plugin version 1.4.0)

How to replace colors with your own set?

Add this snippet to your file functions.php:

// add my color palette to spoiler
function otfmgs_add_my_color_pallete($colors){
    $colors['new'][]= array( 'color' => '#bd4747', 'name' => 'my_brown' );
    $colors['new'][]= array( 'color' => '#32dd94', 'name' => 'my_green' );
    //... etc

    return $colors;
}
add_filter('otfmgs_colors','otfmgs_add_my_color_pallete');

where: #bd4747 - new hex color

result: https://yadi.sk/i/Fv7BaxRLkjj_SA

(available from plugin version 1.4.0)

What WordPress themes work with OtFm Gutenberg Spoiler?

Any properly developed WordPress theme will work with OtFm Gutenberg Spoiler

How do I find the spoiler block?

  1. Go to the block editor (add new post)
  2. Click "insert block"
  3. Search for a block "spoiler" or "otfm" or "faq"

Is OtFm Gutenberg Spoiler free?

Yes! OtFm Gutenberg Spoiler core features are absolutely free.

Where can I ask for help?

Write me Otshelnik-Fm@yandex.ru

Full Changelog


  1. Upload the otfm-gutenberg-spoiler folder to your /wp-content/plugins/ directory or alternatively upload the otfm-gutenberg-spoiler.zip file via the plugin page of WordPress by clicking 'Add New' and selecting the zip from your computer.
  2. Activate the OtFm Gutenberg Spoiler WordPress plugin through the 'Plugins' menu in WordPress.
  3. Use OtFm Gutenberg Spoiler blocks on your next page or post.


Find & add spoiler blocks
Screenshot 1


Little spoiler
Screenshot 2


Box spoiler
Screenshot 3


In frontend
Screenshot 4


Open spoiler
Screenshot 5



 

Click here to cancel reply.

Click here to cancel reply.


*

*


Please copy the string FFHf5s to the field below:

Home | Sitemap | Contact
Network Skin Theme for BioShip by WordQuest
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.