Home > other >  Exclude CSS class form element in WordPress site
Exclude CSS class form element in WordPress site

Time:12-30

I want to exclude "wp-dark-mode-ignore" class from the button class in WordPress?

<button type="button"  style="">
    <span>Reserve Now</span>
</button>

CodePudding user response:

You can use removeClass();

$('.bookingbutton2').removeClass('wp-dark-mode-ignore');
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<button type="button"  style="">
    <span>Reserve Now</span>
</button>

  • Related