appiapp Clickable Container

Description

appiapp Clickable Container solves a common challenge in WordPress block editing – making an entire block or group of blocks clickable as a single unit.

While this seems like it should be simple, it’s surprisingly difficult to implement cleanly in WordPress, especially within Query Loops where you want each container to link to its associated post.

The Problem This Plugin Solves:
– You want to make an entire card or section clickable (not just a button or title)
– You need Clickable Container inside Query Loops that automatically link to their respective posts

How It Works:
Insert the appiApp Clickable Container block, then choose:
1. Link type:
– Custom URL (for any specific destination)
– Current Post URL (automatically links to the correct post in Query Loops)

  1. Implementation method:

    • Absolute positioned link (clean implementation with nested elements)
    • Wrapper link (simple implementation for basic needs)
    • JavaScript method (most flexible, handles nested interactive elements)
  2. Additional options:

    • Open in new tab
    • Add nofollow attribute

Usage

Basic Usage

  1. Add the “AppiApp Clickable Container” block to your page
  2. Configure the link settings:
    • Choose “Custom URL” and enter your destination, or
    • Choose “Current Post URL” if inside a Query Loop
  3. Select your preferred implementation method:
    • JavaScript Method (recommended for complex containers)
    • Absolute Positioned Link (good balance for most cases)
    • Wrapper Link (simplest, but may have accessibility limitations)
  4. Add your content blocks inside the container
  5. Save and publish!

Inside Query Loops

  1. Create a Query Loop block
  2. Add the “appiApp Clickable Container” block inside the loop
  3. Select “Current Post URL” as the link type
  4. Add your content (images, text, etc.)
  5. Every container will automatically link to its respective post!

Screenshots

Blocks

This plugin provides 1 block.

  • appiapp Clickable Container Container that makes its content clickable with a link to the current post in the query loop or custom link

Installation

  1. Upload the plugin files to the /wp-content/plugins/appiapp-clickable-blocks-binding directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Ensure that the AppiApp Clickable Container plugin is installed and active

FAQ

How does this differ from just adding a button or link?

This plugin makes the entire block or container clickable as a single unit, creating a more intuitive UX where users can click anywhere in a card or section. It’s particularly useful for card-based layouts and list items.

Which implementation method should I choose?

  • JavaScript Method: Best for containers with other interactive elements (links, buttons)
  • Absolute Positioned Link: Good balance between accessibility and functionality
  • Wrapper Link: Simplest implementation but may cause issues if you have other links inside

Can I use this outside of Query Loops?

Absolutely! While especially valuable in Query Loops, you can use the custom URL option anywhere to make content blocks clickable.

Will this work with my theme?

Yes, the plugin works with any WordPress theme and is compatible with the block editor.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“appiapp Clickable Container” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release
  • Support for Query Loops with automatic post linking
  • Three implementation methods: JavaScript, Absolute Positioned, and Wrapper
  • Full compatibility with Block Bindings API
  • Options for opening in new tab and nofollow attribute