Change text and Remove qty available

Home Forums Ticket Products Event Tickets Plus Change text and Remove qty available

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1252940
    Deb
    Participant

    Hello

    I have a couple of questions about my purchase

    1.) I tried changing the word ‘Tickets’ on the Course page to ‘Course Registration’ I saw a thread in the form that indicated to use the translate function and I posted this code snippet


    add_filter('gettext', 'theme_filter_text', 10, 3);

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

    // Copy and modify the following if {} statement to replace multiple blocks of text
    // Match the text you want you want to translate, preferably also match the text domain
    if($text === 'Tickets' && $domain === 'tribe-event-tickets') {

    // The custom text you want instead
    $text = 'Course Registration';

    }

    return $text;
    }

    It doesnt seem to work. Can you please let me know what I need to change or if there is a better way to do it that doesnt have to be put into a separate folder

    2.,) Is there a way to CSS out the number of tickets available? I see the following css. I dont want to change the template if possible and the cssisnt working

    /* Hide Number of Available Tickets */
    .tribe-events-tickets .tribe-tickets-remaining {
    display: none;
    }

    3,) During SQA, we identified you can add a malformed e mail address to the ticket box. Is there a way to fix this?

    Thanks.
    Dave

    #1253520
    Nico
    Member

    Hi there Dave,

    Thanks for getting in touch with us! I can help you on this…

    1.) I tried changing the word ‘Tickets’ on the Course page to ‘Course Registration’…

    Just give the code in this article a try and let me know if it works for you → Change the wording of any bit of text or string. The one you shared seems to be an adapted version of the same snippet, maybe it’s a bit outdated.

    2.,) Is there a way to CSS out the number of tickets available? I see the following css. I dont want to change the template if possible and the cssisnt working

    Sure, can you try the following CSS snippet:

    .tribe-tickets-remaining {
    display: none !important;
    }

    Please let me know about if the above helps,
    Best,
    Nico

    #1264220
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change text and Remove qty available’ is closed to new replies.