Home › Forums › Calendar Products › Community Events › Hide Fields – Organiser section
- This topic has 5 replies, 2 voices, and was last updated 8 years, 7 months ago by
Alan Crayton.
-
AuthorPosts
-
September 1, 2017 at 8:18 am #1343640
Alan Crayton
ParticipantHide Organiser detail fields . Community Events
My users can add an event. When it comes down to “Organiser” fields I only want their username to be displayed. I want like to remove all the other fields in the Organiser section.
Or is their a way so that their username is automatically populated in the username field.Thanks
September 4, 2017 at 7:21 pm #1344671Jennifer
KeymasterHi Alan,
Thanks for reaching out!
To remove the additional information, you can follow these instructions to copy the organizer template (found at wp-content/plugins/the-events-calendar/src/views/modules/meta/organizer.php) into your child theme and remove the following code block:
if ( ! $multiple ) { // only show organizer details if there is one
if ( ! empty( $phone ) ) {
?>
<dt>
<?php esc_html_e( 'Phone:', 'the-events-calendar' ) ?>
</dt>
<dd class="tribe-organizer-tel">
<?php echo esc_html( $phone ); ?>
</dd>
<?php
}//end ifif ( ! empty( $email ) ) {
?>
<dt>
<?php esc_html_e( 'Email:', 'the-events-calendar' ) ?>
</dt>
<dd class="tribe-organizer-email">
<?php echo esc_html( $email ); ?>
</dd>
<?php
}//end ifif ( ! empty( $website ) ) {
?>
<dt>
<?php esc_html_e( 'Website:', 'the-events-calendar' ) ?>
</dt>
<dd class="tribe-organizer-url">
<?php echo $website; ?>
</dd>
<?php
}//end if
}//end ifAutomatically populating the organizer field with the user’s username would require a more advanced customization, but our themer’s guide would be the place to start if you’d like to give it a shot! We also have a list of recommended developers if you’d like to get some help with the code.
Please let me know how that works for you and if you have any questions!
Thanks,
Jennifer
September 5, 2017 at 1:52 am #1344751Alan Crayton
ParticipantHi Jennifer,
Do I copy the file into exactly the same place in my child field or just in
the root directory of the child theme?September 5, 2017 at 8:36 pm #1345276Jennifer
KeymasterHi Alan,
You would copy the file into wp-content/themes/your-theme/tribe-events/community.
Note that you will need to create the tribe-events and community folders. Then, you can paste the file into the Community folder. Once you’ve copied it over, you can remove the code block I mentioned above.
Let me know how it goes!
Thanks,
Jennifer
September 27, 2017 at 9:35 am #1355656Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Hide Fields – Organiser section’ is closed to new replies.
