How to hide organizer url(web-site) in front-end of single event?

Home Forums Calendar Products Events Calendar PRO How to hide organizer url(web-site) in front-end of single event?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #938977
    gonchar
    Participant

    Hi there!

    How to hide organizer url(web-site) in front-end of single event?

    Thanks

    #938978
    gonchar
    Participant

    I mean for all events

    #939026
    Brian
    Member

    Hi,

    I can point you in the right direction on this.

    Please follow our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    To move and edit the organizer template in your theme.

    This is the filter you will want to edit:

    the-events-calendar\views\modules\meta\organizer.php

    You can just remove the website coding and that should be it.

    Let me know if you have any follow up questions.

    Thanks

    #939044
    gonchar
    Participant

    Hi, Brian!

    Thank you for attantion for my problem and exact direction to solve it!

    May be there are some snippet for functions.php to hide (not display) url-field & phone-field of organizer in front-end? But not delete this fields from back-end!

    The same reffers to Venue: could some fields be not displayed in front-end. But not delete this fields from back-end!

    / You wrote: “You can just remove the website coding and that should be it.”
    I am not programmer, I fear touching any code inside as i do not know exactly what to do.
    It’s very possible i break down my site.
    I’m very sorry for this words! It’s realistic.((( /

    Is it possible to solve my task by snippet in principle?
    If Yes, Have you seen somewhere such snippet?

    Thanks!

    #939059
    Brian
    Member

    Unfortunately, there is no snippet to provide to remove fields like this.

    Those steps are for the front end only, this does not remove anything from the backend.

    Please follow the themer’s guide to move and edit the templates that is the only method we have for this.

    Thanks

    #939176
    gonchar
    Participant

    Brian! thank you for your advice!!! Done!

    But in “Single Organizer View” and “Single Venue View” meta data appear!

    This I found in https://theeventscalendar.com/knowledgebase/themers-guide/
    ——————————————
    Venues and Organizers

    single-organizer.php – Used to list upcoming events related to an individual organizer. This utilizes the list templates for the display of any related upcoming events

    single-venue.php – Equivalent to the single-organizer.php template but targeting venues, again this utilizes list templates to display any related events
    ——————————————

    I copied files
    – single-organizer.php
    – single-venue.php

    from
    public_html/coach-portal.com/wp-content/plugins/events-calendar-pro/vies/pro (i found)
    to
    public_html/coach-portal.com/wp-content/themes/betheme/tribe-events/pro (i created)

    I tried to hide (by /** *** */) some code, but – in front-end asterisks (******) appears, bug!

    So would you tell me please what code should i hide (delete) to not display meta data from these front-end “Single Organizer View” and “Single Venue View”?

    Thanks!

    #939177
    gonchar
    Participant

    Note: For example in single-organizer.php at public_html/coach-portal.com/wp-content/themes/betheme/tribe-events/pro i’ve made:

    /** <!– Organizer Meta –>
    * <?php do_action( ‘tribe_events_single_organizer_before_the_meta’); ?>
    * <?php echo tribe_get_meta_group( ‘tribe_event_organizer’ ) ?>
    * <?php do_action( ‘tribe_events_single_organizer_after_the_meta’ ) ?>
    */

    No results, only ******

    #939211
    Brian
    Member

    Glad you are getting closer.

    The Single Organizer and Venue are a little tricker and not sure why we decided to change the method for those two to edit.

    However, I usually use css to hide the url on those two pages:

    .tribe-events-organizer address.organizer-address span.url,
    .tribe-events-venue .tribe-events-event-meta address.venue-address span.url {
    display: none;
    }

    Add that css to your theme’s stylesheet or through a plugin such as Simple Custom CSS.

    Let me know if that helps.

    Thanks

    #939254
    gonchar
    Participant

    Hi, Brian!

    It does helps, thank you for your idea!

    Your useful plugin and snippet hide url,

    Would you say please how to make this trick to not display EMAIL and PHONE meta?

    Thanks

    #939381
    Brian
    Member

    It is no trick just css.

    Try out this css for everything:

    .tribe-events-organizer address.organizer-address span.tel,
    .tribe-events-organizer address.organizer-address span.email,
    .tribe-events-organizer address.organizer-address span.url,
    .tribe-events-organizer address.organizer-address .tribe-events-divider,
    .tribe-events-venue .tribe-events-event-meta address.venue-address span.tel,
    .tribe-events-venue .tribe-events-event-meta address.venue-address span.url {
    display: none;
    }

    That is about all we can help out in css changes.

    Thanks!

    #939422
    gonchar
    Participant

    Brian, good time!

    All done, These work well!

    Thank you very much!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘How to hide organizer url(web-site) in front-end of single event?’ is closed to new replies.