Hiding Unnamed Venue

Home Forums Calendar Products Events Calendar PRO Hiding Unnamed Venue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1102824
    william
    Participant

    Hello,

    None of my events will have a Venue though they will have an address. I found code from another thread to hide the “Unnamed Venue” from the main page. The code I used is below, I now need to hide the “Unnamed Venue” from the single-page event listing. Can you provide a similar code to use and let me know where I would place it?

    add_filter( ‘tribe_event_pro_meta_venue_name’, ‘hide_unnamed_venues_from_meta’ );

    function hide_unnamed_venues_from_meta( $html ) {
    if ( false !== strpos( $html, ‘Unnamed Venue’ ) ) return ”;
    return $html;
    }

    #1103206
    Josh
    Participant

    Hey William,

    Thanks for reaching out to us!

    The simplest approach for removing the Venue name from the front-end single event display would be to follow our Themer’s Guide and copy the views > modules > meta > venue.php file into your theme and deleting the venue name from displaying there.

    Let me know if this helps.

    Thanks!

    #1109128
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hiding Unnamed Venue’ is closed to new replies.