Hide Fields – Organiser section

Home Forums Calendar Products Community Events Hide Fields – Organiser section

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1343640
    Alan Crayton
    Participant

    Hide 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

    #1344671
    Jennifer
    Keymaster

    Hi 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 if

    if ( ! 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 if

    if ( ! 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 if

    Automatically 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

    #1344751
    Alan Crayton
    Participant

    Hi 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?

    #1345276
    Jennifer
    Keymaster

    Hi 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

    #1355656
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Hide Fields – Organiser section’ is closed to new replies.