muumuulica Posted March 3, 2017 Share Posted March 3, 2017 Hi, I'm having a big big problem with this $restricted_country_mode functionality I need to hide a certain menu item (I'm using mega menu) when Geolocation is enabled and access to a certain country is limited! Is it possible to hide a certain CSS class when this $restricted_country_mode functionality is enabled? Or... do you guys have any other solutions/ideas? Thanks. Have a nice day! Link to comment Share on other sites More sharing options...
muumuulica Posted March 3, 2017 Author Share Posted March 3, 2017 Do you have any idea if this will work? {if isset($restricted_country_mode) && $restricted_country_mode} <script> var divsToHide = document.getElementsByClassName("no-display-italy"); for(var i = 0; i < divsToHide.length; i++){ divsToHide[i].style.display = "none"; } <script> {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now