• Resolved Augusto Gentile

    (@agugentile)


    Hi, what I am trying to do is a conditional hiding behavior. When USD currency is active, I would like to hide an element through CSS Class.

    I thought maybe using jQuery is possible, but not sure.

    This was my attempt:

    <script>
    
    jQuery(document).ready(function($) {
     ? ?if ($('a.woocs_auto_switcher_link.woocs_curr_curr[data-currency="USD"]')){
            $('.elementClass').hide();
    }
    });
    
    </script>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide element when USD is active’ is closed to new replies.