Lightweight Accordion
Lightweight Accordion plugin for WordPress allows you to add collapse elements to posts using a Gutenberg block or a shortcode (via classic editor). By using the details HTML tag and a few lines of CSS this allows for a javascript-free accordion for minimum page load. Extremely Lightweight (<1kb): Without using Javascript the plugin uses the native details HTML tag and a few lines of code for almost no impact on front-end. Customizable: Options include customizing the HTML tag used for the accordion title, open by default, borders, colors, and accordion grouping (auto-close others when one opens). Shortcode Usage examples Here are a few examples of using the accordion plugin with shortcodes. [lightweight-accordion title="My Accordion"]My Content[/lightweight-accordion] Additionally you can display the accordion open on load with the accordion_open option. [lightweight-accordion title="My Accordion" accordion_open=true]My Content[/lightweight-accordion] You can also change the html tag wrapping the title of the accordion using the title_tag option. [lightweight-accordion title="My Accordion" title_tag="h3"]My Content[/lightweight-accordion] If you want to include FAQ schema you can add the schema option and set it to faq. [lightweight-accordion title="What is your return policy?" schema="faq"]You have 1 week to return your items[/lightweight-accordion] If you’d like put a border around the content of the accordion you can use the “bordered” attribute. [lightweight-accordion title="Bordered Content" bordered=true]My Content[/lightweight-accordion] If you want accordions to auto-close when another opens (exclusive accordion), use the “group” attribute with the same value on each accordion. [lightweight-accordion title="Question 1" group="faq"]Answer 1[/lightweight-accordion] [lightweight-accordion title="Question 2" group="faq"]Answer 2[/lightweight-accordion] [lightweight-accordion title="Question 3" group="faq"]Answer 3[/lightweight-accordion] Shortcode Options Here is the full listing of shortcode options. Additionally all of these options are accessible when using the Gutenberg block. title (Required Default: null) The title of your accordion will be displayed at the top for users to click. A good example would be to include a user’s question so they could click it for more details. content (Required Default: null) Content that will go into your accordion element. title_tag (Default: “span”) This sets the html tag that wraps the title in the accordion summary. Useful if you want to make it a heading tag for SEO purposes. accordion_open (Default: false) Set this to true if you want your accordion to be open by default. bordered (Default: false) Set this to true if you want a border around the accordion content. title_text_color (Default: false) Set this to a hex value or CSS color to change the color of the accordion title text. title_background_color (Default: false) Set this to a hex value or CSS color to change the color of the accordion title text. schema (Default: false) Set this to faq if you’d like FAQ schema to be included. class (Default: false) Used to add a custom class to the parent container of the accordion. anchor (Default: null) Adds the value as an ID to the accordion div as an anchor. autop (Default: true) By default the shortcode will wrap text in a ‘p’ tag. Set this to false if you’d like this disabled for the specific accordion. group (Default: false) Set this to a group name to make accordions with the same group auto-close when another opens. Uses the native HTML details name attribute for zero JavaScript overhead. Additional Details If you’d like to remove the “lightweight-accordion.css” from being enqueued on your site use the filter below. It’s recommend you style the accordion yourself if you use this filter. add_filter('lightweight_accordion_include_frontend_stylesheet', '__return_false' ); If you’d like to remove the “lightweight-accordion/editor-styles.css” from being enqueued in the admin area of your site you can use the filter below. add_filter('lightweight_accordion_include_admin_stylesheet', '__return_false' ); If you’d like to remove processing of shortcodes in accordion content you can use this filter. add_filter('lightweight_accordion_process_shortcodes', '__return_false' ); If you’d like to use inline Microdata for FAQ schema you can use this filter. (Not recommended) add_filter('lightweight_accordion_output_microdata', '__return_true' ); If you’d like to force “lightweight-accordion.css” to load on all of your site you can use this filter. By default the plugin will detect if the block or shortcode is used and enqueue the CSS. add_filter('lightweight_accordion_always_include_frontend_stylesheet', '__return_true' );
Top keywords
- accordion33×4.38%
- title20×2.66%
- lightweight-accordion19×2.52%
- default16×2.12%
- filter11×1.46%
- content10×1.33%
- tag10×1.33%
- faq9×1.20%
- add8×1.06%
- false8×1.06%
- lightweight-accordion title8×1.06%
- set8×1.06%
RioVizual
RioVizual is the all-in-one Gutenberg table plugin designed for creating comparison tables, pricing tables, and pros & cons boxes directly in the block editor. It allows you to drag and drop elements to build customizable, responsive & SEO-friendly tables with multiple columns and rows. With advanced styling and formatting options, RioVizual helps enhance user engagement and boost conversion. Get Pro | View Table Builder Demo | View Pricing Table Demo | View Pros & Cons Demo | Read Documentation RioVizual Blocks (More Coming Soon!) RioVizual includes the following highly customizable Gutenberg blocks: Table Builder Block: Create fully customizable and responsive tables with drag-and-drop functionality in the Gutenberg editor. (Learn More) Pricing Table Block: Easily compare pricing plans for your products or services with customizable pricing tables. (Learn More) Pros & Cons Block: Highlight the benefits and drawbacks of products or services with attractive pros and cons tables. (Learn More) With RioVizual, you can also access a library of pre-designed table templates, streamlining the process of creating stunning comparison tables, pricing tables, and pros & cons boxes in the Gutenberg block editor. Why You Should Use RioVizual? Easy Drag-and-Drop Interface: Create comparison tables, pricing tables, and pros & cons boxes in minutes with Gutenberg. No Coding Skills Needed: Build professional, customizable tables without any coding knowledge. Extensive Template Library: Choose from 50+ pre-designed templates for quick table creation. Fully Responsive Design: Ensure tables look great on all devices, from desktop to mobile. Advanced Customization Options: Customize fonts, colors, borders, and more to match your website’s design. Optimized for Performance and SEO: Built with clean, optimized code and structured data support. RioVizual Table Builder Block Includes Drag-and-drop table builder specifically for the Gutenberg block editor. 12 versatile table elements (text, image, button, list, icon, shortcode, media & text, icon list, icon button, dual button, star rating, divider) to create dynamic tables in WordPress. (More elements coming soon!) 29 pre-designed table templates to jumpstart your table creation process. Right-click options for adding, deleting, copying, cutting, pasting, duplicating, and moving elements. Comprehensive cell manipulation: insert, delete, copy, cut, paste, and more for rows and columns. Design flexibility: style cells and elements individually or in groups. Dynamic cell type adjustment: switch between body, header, or footer cells with ease. Fully responsive design: make tables adapt to different screen sizes automatically. Improved mobile viewing: make tables scrollable or stackable for smaller screens. Customizable cell width: set fixed or flexible widths for all cells. Freeze options: lock the first row or column for better navigation. Cell merging and splitting: merge multiple cells into one or split them back while preserving content. HTML tag customization: switch cell tags between “td” and “th.” Multi-cell selection: use Ctrl to select multiple cells or Shift for selecting a range. Extensive border settings: choose from different border types (solid, dotted, dashed, double, groove, ridge, inset, outset) for each cell. RioVizual Pricing Table Block Includes 25 pre-designed pricing table templates for quick deployment. Responsive column controls for adaptable and mobile-friendly layouts. Flexible row and column management: easily add, delete, or duplicate rows and columns. 7 core elements: title, price, features, star rating, divider, media and call-to-action button for compelling pricing tables. Ribbon settings with two preset design options for highlighting offers. Equal column height adjustment to ensure a uniform look. Right-click functionality for quick manipulation of elements (add, delete, copy, cut, paste, duplicate, move). Multi-cell selection for bulk operations. Automatic mobile responsiveness for flawless performance on any device. Custom styling options: personalize each element with global or custom design settings. Pricing Toggle Icon support, Tooltip, Badge with features element Original price, Price Suffix support, Dynamic Price Slider with pricing element Media(img/icon) support with title element. Icon support with button element. Background image support for column. Featured column support. 3 more style for ribbon. RioVizual Pros & Cons Block Includes 13 pre-designed templates to easily create pros and cons boxes. Built-in Pros and Cons Schema support to enhance SEO. Icon customization for a personalized look. Customization for box, title, and body. Flexible styling: customize the box, title, and body to match your design. Mobile support: optimized for vertical boxes on small screens. Header and Body Item Icon Placement Title Separator for header Flexible Header Positioning Enable Stripe on Body Items Advanced Border Styles with 8 Stunning Design Pattern Extra Design Flexibility in Style Options Creating Tables in the Gutenberg Block Editor Has Never Been Easier Creating tables like comparison tables, pricing tables, and pros & cons tables with a WordPress table plugin has never been easier. With RioVizual, it only takes 4 simple steps: Step 1 – Add a RioVizual Block To insert a table into a WordPress post or page, simply add the desired RioVizual block from the Gutenberg block editor. Step 2 – Provide Table Contents Choose to create a table from scratch or use one of the pre-made layouts by entering your table contents. Step 3 – Customize Your Table Customize the table’s columns, colors, fonts, and other settings to match your design preferences. Make adjustments as needed to create a table that perfectly suits your needs. Step 4 – Publish Your Table Once you’re satisfied with the table’s design, click “Publish” or “Update” to make it live on your post or page. Helpful Resources How to Create a Comparison Table in WordPress Gutenberg Block Editor? How to Create a Pricing Table in WordPress Gutenberg Block Editor? How to Create a Pros & Cons Table in WordPress Gutenberg Block Editor? Love RioVizual? Rate Us on WordPress Join RioVizual Users Community Visit RioVizual Website Follow RioVizual on Facebook