Change "Free!" Price in WooTicket Single-Event

Home Forums Ticket Products Event Tickets Plus Change "Free!" Price in WooTicket Single-Event

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1016074
    Sarah
    Participant

    Does anyone know how to remove the exclamation point from the Free! in Events Calendar WC Tickets? I just need it to say ‘Free’ or $0.

    Thanks!
    SC

    #1016086
    Nico
    Member

    Hi Sarah,

    Thanks for reaching out to us! Hopefully there’s an easy way of changing that text.

    Just add the following snippet to your theme’s functions.php file (located at wp-content/themes/your_theme/):

    function woo_custom_theme_text ( $translations, $text, $domain ) {

    $custom_text = array(
    'Free!' => 'Free',
    );

    if( $domain == 'woocommerce' && array_key_exists($text, $custom_text) ) {
    $text = $custom_text[$text];
    }

    return $text;
    }
    add_filter('gettext', 'woo_custom_theme_text', 20, 3);

    You can also do this via Say What? plugin, a simple tool for translating string.

    Please let me know if you can manage to get this working,
    Best,
    Nico

    #1016087
    Sarah
    Participant

    Thanks. I think I need to build a child theme now and then I can follow the changes above. I appreciate your help!

    #1016404
    Nico
    Member

    Hey Sarah,

    That’s great! Personally, I found that Say What? plugin is a pretty solid option for this task as it’s pretty lightweight and theme-independent as well. But sometimes is better to add a snippet and not a plugin for a small task as this one, anyway that’s your call!

    I’ll leave this thread open until you can confirm this is solved 🙂

    Cheers,
    Nico

    #1021660
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Change "Free!" Price in WooTicket Single-Event’ is closed to new replies.