Code

Disable/Enable Clicking on Element

Control which elements can or cannot be clicked on your Webflow site with this simple CSS code snippet.

Disable/Enable Clicking on Element preview

Control which elements can or cannot be clicked on your Webflow site with this simple CSS code snippet.

How to add it

  1. Add the CSS as an HTML embed or via the head section of your custom code settings.

The code

CSS
                      <!-- Add as HTML embed or head section -->
<style>

.click-not-allowed {pointer-events: none;}
.click-allowed {pointer-events: auto;}

</style>

                    

Browse similar code snippets

Categories

Language

More from Timothy Ricks

Profile →

Related Webflow questions

All answers →

Similar code snippets

All code snippets →