Created
March 4, 2019 22:34
-
-
Save alaasalama/87e96bfcc99ba3677e43a72fa7839ce1 to your computer and use it in GitHub Desktop.
hide free from RSVP cost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hide_free_from_rsvp() { | |
?> | |
<script type="text/javascript"> | |
// your javscript code goes here | |
jQuery( document ).ready(function() { | |
jQuery('.tribe-events-event-cost, .tribe-events-cost').each(function() { | |
jQuery(".tribe-events-event-cost").text().replace("Gratis – ", "") | |
var text = jQuery(this).text(); | |
text = text.replace("Gratis – ", ""); | |
jQuery(this).text(text); | |
}); | |
}); | |
</script> | |
<?php | |
} | |
add_action('wp_head', 'hide_free_from_rsvp'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment