Dynamic PHP-condition to show / hide a specific Elementor Block
-
Hi all,
I want to show / hide a specific block depending on the return value of a specific PHP function. Let’s assume:
function A() { /* do something here and calculate $var....*/ return $var > 10 ? True : False; }
How can I bind the hide / show of a Elementor Block on ithe return value? I do not only want to hide the block using CSS, because maybe the Elementor block contains also JS code. So I really want to get rid of it on HTML basis…
Any idea? Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Dynamic PHP-condition to show / hide a specific Elementor Block’ is closed to new replies.