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] If you’d like to swap the default triangle marker for a chevron or plus/minus icon (optionally on the right side of the title) use the “icon” and “icon_position” attributes. [lightweight-accordion title="My Accordion" icon="chevron" icon_position="right"]My Content[/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. icon (Default: false) Set this to “chevron”, “plus”, or “none” to replace the default triangle marker. The chevron rotates and the plus becomes a minus when the accordion opens. icon_position (Default: false) Set this to “right” to display the chevron or plus icon on the right side of the accordion title. 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' ); When a page contains an accordion a tiny inline script is added to the footer that automatically opens accordions targeted by a URL hash (for example a link to an accordion’s anchor). If you’d like to disable this you can use the filter below. add_filter('lightweight_accordion_anchor_script', '__return_false' );
Top keywords
- accordion39×4.31%
- title23×2.54%
- lightweight-accordion21×2.32%
- default20×2.21%
- filter13×1.44%
- content11×1.22%
- false10×1.11%
- set10×1.11%
- tag10×1.11%
- add9×1.00%
- default false9×1.00%
- faq9×1.00%
Ultimate FAQ Accordion Plugin
Having an FAQ section or knowledge base on your site is essential to make sure you are not losing customers and to reduce your support load. With the Ultimate FAQ plugin and its simple UI, you can quickly create FAQs and add them to your site using the included blocks, patterns or shortcodes. It works with WordPress’s built-in editor as well as third-party editors like Elementor and is translation-ready, with many already available here. All this in an accordion layout that is automatically responsive and adapts your FAQs to any site! 👩💻 Demo | 🌟 Premium | ℹ️ Support Key Features Add an unlimited number of FAQ entries, categories, tags and pages. Display your FAQs anywhere with the included Gutenberg blocks and shortcodes. FAQ accordion layout that automatically adapts to fit in any site and on any device. Works with third-party editors like Elementor. Easily translate FAQ entries using WPML, Loco Translate, Polylang, etc. With many translations already available here! Automatically adds FAQ and FAQPage structured data. Advanced FAQ and category sorting and ordering options. Zero coding! Get Set Up in No Time! When you first activate the Ultimate FAQ plugin, it will automatically run a walk-through, which will help you create your FAQs and add them to a page. Google Optimized The plugin includes full FAQPage and FAQ schema structured data markup, in LD+JSON format. So, when your page is indexed, Google will know it’s an FAQ page and can list it accordingly in search results. Multiple Languages? We’ve got you covered! Your FAQs are created using a post type. This means it works out of the box with language plugins like WPML, Loco Translate and Polylang. There are also many community translations already available here. And, of course, we include an up-to-date .pot for good measure, in case you like to create your own custom translations for your FAQs. FAQ Customization Options We’ve included (in the free version!) advanced customization features that let you choose what elements show for each FAQ (e.g. categories, tags, author, date, etc.), set the order of your FAQs and categories, fine tune accordion behavior, add your own custom CSS and more! FAQ Statistics Statistics and view counts are automatically enabled, so you can easily keep track of which FAQs are the most popular. FAQ Comments We’ve included the ability for you to enable comments on FAQs, giving you a platform to communicate with your users/customers and help improve not only your knowledge base, but your overall product or service. The FAQ comments make use of WordPress’s built-in comment engine, which means seamless integration and you can use WordPress’s comment and moderation settings to fine tune the experience. Use AI to Generate FAQs You no longer need to manually create all your FAQs. Let the plugin do the heavy lifting for you! We now offer Open AI integration, via which the plugin will automatically generate new FAQs for you. You just need to specify which page or post should be used and the plugin will automatically create the FAQ based on the content of it. You can also choose to automatically assign an FAQ to a category. You then get a chance to review the generated content before publishing it to your site. Premium AI-generated FAQs In the premium version you will get access to create up to 20 AI-generated FAQs at a time as well as to specify multiple pages and/or posts from which the content should be pulled to generate the FAQs. Privacy note: The plugin sends post or page content to our server, which is forwarded to Open AI when using the AI FAQ generation feature. No other data is sent to external sources. Powerful FAQ Search (Requires Premium) Have a lot of FAQs? Our powerful search engine eliminates the need for your customers to scroll through endless FAQ entries to find the info they need. Add the FAQ search form anywhere on your site via block, pattern or shortcode. It uses asynchronous requests to search your whole database of FAQs in real time, without having to reload the page. It comes with an option to display your FAQs on page load, so you can use one block for everything. No duplicates. No mess. Super easy for your users! Enable the highlighting and auto-complete options for an even better FAQ search experience. WooCommerce FAQ Support (Requires Premium) With our built-in WooCommerce integration, you can easily add FAQs to your product pages. Adds an FAQs tab to product pages. Uses the same adaptive FAQ layout for seamless integration with any theme. Options to automatically or manually add FAQs to a product. Automatically: Just create an FAQ category that matches the name of a category or product from your WooCommerce. Manually: Go to the WooCommerce product edit screen and add the FAQs you want. Let People Submit Their Own FAQ Ideas (Requires Premium) Want to give your customers the power to make your knowledge base better? Add an FAQ submission form anywhere on your site using the included block or shortcode, so people can give new FAQ ideas and even optionally include a suggested answer. Need More? We’ve Got You Covered with the Ultimate FAQ Premium Version! Enhance your user experience by customizing the Ultimate FAQ plugin to your exact needs with the following premium features: Additional FAQ layouts 15 icon sets for the FAQ toggle symbol WP Forms Integration that automatically loads matching FAQs as people type in the form. Drag and drop FAQ ordering Social media sharing for your FAQs FAQ animation options Add custom fields to your FAQs (e.g. links, text areas, dates, files, etc.) SEO-Friendly FAQ pretty permalinks FAQ export and import via spreadsheet Export all FAQs to a PDF (e.g. to create a user manual) Advanced FAQ styling options FAQ labelling options For further information and purchasing options, please visit our WordPress FAQ plugin homepage. Want to Try Out the Ultimate FAQ Premium Version for Free? We’re happy to offer a free 7-day trial of the premium version of the Ultimate FAQ plugin, which you can use to test out features like the FAQ search form, custom fields and styling options!** Customize Your FAQs with the Included Template System The Ultimate FAQ plugin front end is built on a series of templates that can be customized by creating your own version of the template files (to modify and/or overwrite the existing ones). This gives you a powerful and non-destructive way to customize the look and functionality to your exact needs. More info about this can be found in our documentation. For FAQ help and support Ultimate FAQ documentation Our FAQ pages here and here Ultimate FAQ installation guide and information about the walk-through Ultimate FAQ tutorial videos The Ultimate FAQ support forum Our Support Center