Accordion Blocks
Accordion Blocks is a simple plugin that adds a Gutenberg block for adding accordion drop-downs to your pages. The accordions should blend seamlessly with your theme. However, you may want to add custom styles to your theme. Features Adds a Gutenberg block for adding accordions to your site. Supports multiple accordions with individual settings for each accordion item. Fully responsive. Support for item IDs and direct links. Supports nesting accordions. Accessible (for users requiring tabbed keyboard navigation control). Optional Features Open individual accordion items by default. Disable auto closing of accordion items. Manually close items by clicking the title again. Scroll page to title when it’s clicked open (including setting a scroll offset position). Set the HTML heading tag for the title element (h1–h6, button). Set defaults to be applied to all new accordion items or reset a specific accordion item to the defaults. Supports adding custom block styles using wp.blocks.registerBlockStyle. Output The plugin will ultimately output following HTML (simplified for this example): Title with H2 tag Content Custom CSS You can use the following CSS classes to customize the look of the accordion. .c-accordion__item {} /* The accordion item container */ .c-accordion__item.is-open {} /* is-open is added to open accordion items */ .c-accordion__item.is-read {} /* is-read is added to accordion items that have been opened at least once */ .c-accordion__title {} /* An accordion item title */ .c-accordion__title--button {} /* An accordion item title that is using a ` ` tag */ .c-accordion__title:hover {} /* To modify the style when hovering over an accordion item title */ .c-accordion__title:focus {} /* To modify the style when an accordion item title currently has broswer focus */ .c-accordion__content {} /* An accordion item content container */
Top keywords
- accordion16×5.84%
- item12×4.38%
- title11×4.01%
- accordion item8×2.92%
- c-accordion8×2.92%
- items6×2.19%
- accordion items5×1.82%
- accordion item title4×1.46%
- accordions4×1.46%
- item title4×1.46%
- adding3×1.09%
- block3×1.09%
Easy Expand
Easy Expand helps you create sleek and responsive collapsible sections for your WordPress site. Whether you want to hide lengthy text, organize FAQs, or simplify navigation, this plugin is perfect for enhancing user experience. Easy Expand is your ultimate solution for creating dynamic and interactive content on your WordPress site. By introducing collapsible sections, you can easily transform bulky pages into clean, organized, and user-friendly experiences. With just a few simple steps, this plugin empowers both casual users and seasoned developers to enhance the functionality and aesthetics of their websites. With a straightforward [expand] shortcode, you can wrap any content (even other shortcodes) into an expanding/collapsing element. Users can click to reveal or hide content effortlessly, making your site clean and interactive. Why choose Easy Expand? – Perfect for FAQs: Organize answers into collapsible sections for easy navigation. – Enhance mobile usability: Avoid clutter and show only what matters on small screens. – Flexible customization: Tailor colors, fonts, and styles to match your site design. Key Features Streamlined Shortcode Integration: Wrap any content within the [expand] shortcode and instantly create an interactive, collapsible section. You can even nest other shortcodes, giving you unparalleled flexibility. Perfect for Various Use Cases: Organize FAQs to streamline user navigation. Hide lengthy articles or reports while keeping them accessible. Create collapsible navigation menus for a modern UI. Add spoiler tags to keep surprises intact for readers. Responsive Design: Designed with mobile-first principles, the plugin ensures collapsible sections work flawlessly on any device. Avoid screen clutter and let users focus on what matters. Customizable Appearance: Match the look and feel of your site effortlessly. Adjust fonts, colors, and styles with your theme’s CSS or other customization tools. Why Developers Love Easy Expand Flexible Content Handling: Supports plain text, HTML, and even other nested shortcodes within collapsible sections. Lightweight and Efficient: Easy Expand is built to minimize impact on load times and server performance, even for content-heavy pages. Developer-Friendly Customization: Use hooks and filters to tweak the functionality and integrate seamlessly with custom themes or third-party plugins. Extendable for Advanced Use Cases: From dynamic data loading to AJAX-based content display, developers can build upon Easy Expand to meet advanced project requirements. How It Elevates Your Website Boost User Engagement: Create intuitive interfaces that make users want to explore more. Improve Accessibility: Enable users to reveal or hide content based on their needs, making your site more inclusive. Simplify Navigation: Group related content, making pages more readable and structured. By combining functionality with user-friendly design, Easy Expand helps your WordPress site stand out from the crowd. Whether you’re a blogger looking for simplicity or a developer building custom solutions, Easy Expand delivers the flexibility and performance you need. Where to Use Easy Expand Here’s a list of where and how you can effectively use the Easy Expand plugin to maximize the potential of your WordPress website: FAQs Pages Organize frequently asked questions into collapsible sections, allowing users to quickly find answers without scrolling through long lists. Example: [expand title="What is your refund policy?"]We offer a full refund within 30 days of purchase.[/expand] Blog Posts Hide lengthy content like tutorials, recipes, or spoilers. Readers can reveal additional details only when needed. Example: [expand title="Step-by-Step Instructions"]Here’s the detailed guide to follow…[/expand] Portfolios Display project descriptions, client testimonials, or technical details in collapsible sections to keep your portfolio clean and professional. Example: [expand title="Project Details"]We developed a custom solution for the client using…[/expand] E-commerce Stores Add collapsible product descriptions, specifications, or FAQs to product pages for a better user experience. Example: [expand title="Technical Specifications"]This product includes…[/expand] Landing Pages Make marketing pages more interactive by hiding additional details until the user chooses to reveal them. Example: [expand title="Learn More About Our Services"]We specialize in…[/expand] Educational Websites Present course materials, quizzes, or explanations in collapsible sections to improve navigation for students. Example: [expand title="Chapter Summary"]This chapter covers…[/expand] Documentation Pages Organize technical documentation into manageable sections, making it easier for users to find and focus on specific topics. Example: [expand title="API Details"]Here are the parameters for our API…[/expand] Event Schedules Display detailed agendas, speaker bios, or session descriptions without cluttering the page. Example: [expand title="Session 1: Keynote Address"]Speaker: John Doe. Time: 10 AM.[/expand] Membership Sites Offer premium or hidden content only accessible upon user interaction, adding a touch of exclusivity. Example: [expand title="Exclusive Tips"]These are reserved for our premium members…[/expand] Online Forums or Communities Use collapsible sections for hiding large blocks of text, like rules, resources, or instructions for members. Example: [expand title="Forum Guidelines"]Please follow these rules to maintain a healthy discussion…[/expand] Creative Writing Websites Add interactive storytelling elements, such as hiding alternate endings, author notes, or character profiles. Example: [expand title="Spoiler Alert"]The story takes an unexpected twist…[/expand] and etc.