Useful if you want to make it a heading tag for SEO purposes. title_tag (Default: “span”) This sets the html tag that wraps the title in the accordion summary.content (Required Default: null) Content that will go into your accordion element.A good example would be to include a user’s question so they could click it for more details. title (Required Default: null) The title of your accordion will be displayed at the top for users to click.Additionally all of these options are accessible when using the Gutenberg block. ![]() Here is the full listing of shortcode options. If you’d like put a border around the content of the accordion you can use the “bordered” attribute. If you want to include FAQ schema you can add the schema option and set it to faq. You can also change the html tag wrapping the title of the accordion using the title_tag option. My ContentĪdditionally you can display the accordion open on load with the accordion_open option. Here are a few examples of using the accordion plugin with shortcodes. By using the details HTML tag and a few lines of CSS this allows for a javascript-free accordion for minimum page load.Įxtremely 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.Ĭustomizable: Options include customizing the HTML tag used for the accordion title, open by default, orders, and colors. Lightweight Accordion plugin for WordPress allows you to add collapse elements to posts using a Gutenberg block or a shortcode (via classic editor).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |