Replacing words – over-ride for single event

Home Forums Ticket Products Event Tickets Plus Replacing words – over-ride for single event

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1238193
    Kathrine Fraser
    Participant

    Hi,

    I have used the code here to change some of the core language on our site:

    Replacing the word 'Tickets' into 'Admit Card'

    However, we have a couple of upcoming events where I would like to change these words. Is there a way I can isolate events for change of language in functions.php?

    Thanks

    #1239536
    Hunter
    Moderator

    Without dedicating too much time on the matter, which unfortunately for these requests I am a bit limited, I would start by trying to use the post_id as the criteria you use to isolate specific events for the changes you’re attempting to make.

    I imagine this thought has already come to mind for you, but as previously mentioned I’m not permitted to spend much time on this sort of request so you’ll have to manage things from here. One last resource I can think of which might help is our Changing the word โ€˜eventsโ€™ to something else tutorial.

    Sorry I can’t be of more help in this instance! For what we are able to provide support for, please review our What support is provided for license holders? Knowledgebase article. If things get beyond your level of expertise, it might be best to hire a professional developer. A good starting point is our list of non-affiliated customizers, though there are tons of available avenues for finding a reputable developer.

    Thanks and let me know how things work out!
    Cheers ๐Ÿ™‚

    #1243611
    Kathrine Fraser
    Participant

    Hi – I am trying a different approach to this, and would now like to try hiding the Cost line (both the dt label, and the actual value) for this single event post.

    This hides the cost, but not the label “Cost” to the left of it.

    #post-1341 .tribe-events-event-cost {
       display: none !important;
    }

    Are you able to assist in helping me to identify this element to hide?

    Thanks

    #1244267
    Hunter
    Moderator

    It looks like that string of text doesn’t have an assigned CSS class, so I’d probably do a template override as explained in our Themer’s Guide.

    Copy the contents of /the-events-calendar/src/views/modules/meta/details.php, paste them into a new file and save as [your-theme]tribe-events/modules/meta/details.php, then delete the “Cost:” text on line 123. Please review this Customizing WordPress #1 – How To Create A Child Theme by LevelUpTuts for a visual example of the process. Let me know how it works out ๐Ÿ™‚

    #1255316
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Replacing words – over-ride for single event’ is closed to new replies.