Hello you fantastic Pinegrow Guys,
While building Blocks that are clickable (for example Cards or Custom Buttons) one thing annoys me: Selecting such Blocks inside the WP Editor is difficult because the link opens immediately.
Would it be possible to add an Option to the Smart Action for disabling links inside of the Block Editor (could be default, i think)?
The URL could be replaced by “#void” for example while rendered in Backend (Idea from here).
Hi @MichelyWeb We do that already:
Link in a JS block:
Link in a PHP block:
Please share an example where this doesn’t work.
here’s a case where it’s not working:
When setting the Link with PHP code with replacement of ´href` attribute.
Might be special because a mix of Block + PHP Code?
@MichelyWeb the suppressing feature only works with Block Attributes action. To do that with custom code, as in your case, you could use:
It is a code sausage but should get the job done.
Thank you very much @matjaz