Disable Venue items on front end

Home Forums Calendar Products Events Calendar PRO Disable Venue items on front end

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #57337
    Norine Leibel
    Participant

    Is there a way to disable certain venue info from appearing in the event info on the front end? For my events, Venue Name is not relevant, rather Town/City suffices. In version 2, I just used CSS to hide it, but in version 3 I see that there’s a comma in the category listings which I can’t get rid of with CSS.
    I took a look at the recommendations here: https://theeventscalendar.com/support/forums/topic/where-to-edit-meta-output-and-labels/#post-55546
    but I don’t quite follow.

    Thanks for any help.

    #57649
    Barry
    Member

    Hi onelittlemoose: just to be clear – all you want under “Venue” is the city (or town) and nothing else?

    #57673
    Norine Leibel
    Participant

    Hi Barry. Correct, I think.

    For context: I have events distributed across multiple cities and towns and sometimes the actual venue info isn’t available or the town “is” the venue” (eg: the town’s small enough, that if you find the town you’ll literally find the event). Because of the wide variance in information that’s supplied, quite often if there is specific venue info I will include it in the body of the event, rather than in the venue name itself, so that there’s consistency. Sometimes the venue is also “listed” elsewhere in the site, so I will instead link to that regular post within the body of the event posting.

    So, nutshell, venue name not needed, nor is the comma that follows it in the output. The rest: City, province, country, telephone, website, is fine to keep.

    I hope that answers your question?

    #58397
    Rob
    Member

    Hey there onelittlemoose. Thanks for the follow-up; I’m not sure if Barry saw your reply here, so I’ve pinged him directly and made this a top priority to address. My apologies for the delay but know he’ll be in touch soon.

    #58436
    Norine Leibel
    Participant

    Thanks, Rob. I know you guys are super busy. Much obliged.

    #58585
    Barry
    Member

    Hi onelittlemoose,

    To remove the venue name can you try adding this snippet to your theme’s functions.php file?

    Does that get you any closer (and sorry also for the delay)?

    #58685
    Norine Leibel
    Participant

    Works like a charm! Thanks Barry.

    #60780
    Rob
    Member

    Excellent to hear that got you sorted! Going to close this one out.

    #980152
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Disable Venue items on front end’ is closed to new replies.