Showing monthly as default in pricing block

Some folks want to show monthly as a default price in pricing block and the code below does it when it’s added to the page settings custom code header area

<script>
document.addEventListener("DOMContentLoaded", function() {
    $('.switch_1').click();
});
</script>
1 Like

Just dicovered this code that is working perfectly :slight_smile: In the past, the chat support gave me this code to convert “Monthly” into “Mensuel” in french, but it still not working, any idea ? Thanks

document.addEventListener(“DOMContentLoaded”, function() {
$('.year').text('Annuel');
$('.month').text('Mensuel');
});

It’s me again :eyes:
Just change the pricing ID:

<script>
     document.addEventListener("DOMContentLoaded", function() {
          $('#pricing1 .year').text('Annuel');
          $('#pricing1 .month').text('Mensuel');
     });
</script>

Thanks a lot @matthieu_chateau, for beginners, don’t forget to replace #pricing1 with the name of your pricing block (if you have several, you must replicate the code) :muscle: