In this tutorial, I will show you how you can show or hide any element, container or section based on a URL parameter you would append to your URL.
We will be using GET parameter to get this working.
Watch the video to learn how it works!
The code to have Elementor show hide based on URL
Here is the code used in the video:
<script> /* Please login to get the code * The code will be for the Elementor Show or Hide Anything Based on URL tutorial * Found at this URL https://element.how/elementor-show-hide-anything-based-on-url/ */ </script>
Conclusion
I hope you have enjoyed this tutorial! Cheers!
2 Responses
Hello! If my paremeter is a number this doesnt work.. i mean your parameter is ''premium'' and that's works good, but my parameter is ''2'' or ''1'' and that's doesnt work
Hey Marco!
Indeed, that's simply because a CSS class name can't start with a numerical value! It has to start by a letter, hyphen or underscore.
Cheers!