Home › Forums › Calendar Products › Events Calendar PRO › How to hide organizer url(web-site) in front-end of single event?
- This topic has 10 replies, 2 voices, and was last updated 11 years, 3 months ago by
gonchar.
-
AuthorPosts
-
January 30, 2015 at 5:55 am #938977
gonchar
ParticipantHi there!
How to hide organizer url(web-site) in front-end of single event?
Thanks
January 30, 2015 at 5:55 am #938978gonchar
ParticipantI mean for all events
January 30, 2015 at 7:55 am #939026Brian
MemberHi,
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
January 30, 2015 at 8:53 am #939044gonchar
ParticipantHi, 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!
January 30, 2015 at 9:10 am #939059Brian
MemberUnfortunately, 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
January 31, 2015 at 2:55 am #939176gonchar
ParticipantBrian! 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 Organizerssingle-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.phpfrom
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!
January 31, 2015 at 3:01 am #939177gonchar
ParticipantNote: 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 ******
January 31, 2015 at 12:22 pm #939211Brian
MemberGlad 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
January 31, 2015 at 9:08 pm #939254gonchar
ParticipantHi, 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
February 2, 2015 at 7:30 am #939381Brian
MemberIt 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!
February 2, 2015 at 8:16 am #939422gonchar
ParticipantBrian, good time!
All done, These work well!
Thank you very much!
-
AuthorPosts
- The topic ‘How to hide organizer url(web-site) in front-end of single event?’ is closed to new replies.
