Descrição
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)
-
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)
-
Additional options:
- Open in new tab
- Add nofollow attribute
Usage
Basic Usage
- Add the “AppiApp Clickable Container” block to your page
- Configure the link settings:
- Choose “Custom URL” and enter your destination, or
- Choose “Current Post URL” if inside a Query Loop
- 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)
- Add your content blocks inside the container
- Save and publish!
Inside Query Loops
- Create a Query Loop block
- Add the “appiApp Clickable Container” block inside the loop
- Select “Current Post URL” as the link type
- Add your content (images, text, etc.)
- Every container will automatically link to its respective post!
Blocos
Este plugin disponibiliza 1 bloco.
- appiapp Clickable Container Container that makes its content clickable with a link to the current post in the query loop or custom link
Instalação
- Upload the plugin files to the
/wp-content/plugins/appiapp-clickable-blocks-binding
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Ensure that the AppiApp Clickable Container plugin is installed and active
Perguntas frequentes
-
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.
Avaliações
Não há avaliações para este plugin.
Colaboradores e desenvolvedores
“appiapp Clickable Container” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.
ColaboradoresTraduzir o “appiapp Clickable Container” para seu idioma.
Interessado no desenvolvimento?
Navegue pelo código, consulte o repositório SVN ou assine o registro de desenvolvimento por RSS.
Registro de alterações
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