Removing venue and organizer fields from back office

Home Forums Calendar Products Events Calendar PRO Removing venue and organizer fields from back office

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1481171
    Arnaud
    Participant

    Hi,
    I’m using the event calendar but I’m not using venue and organizer so, I’m searching if there is a way to remove this fields in the back office.
    Thanks for your help.

    #1481712
    Patricia
    Member

    Hey Arnaud,

    Thank you for reaching out to us!

    It’s not possible to remove these fields from the “Add New Event” page out-of-the-box, but you can hide both by adding the following rules in your style.css file:

    table#event_tribe_venue {
    display: none !important;
    }

    table#event_tribe_organizer {
    display: none !important;
    }

    I hope this helps! If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!

    Cheers,

    Patricia

    #1481948
    Arnaud
    Participant

    Thank you Patricia,

    It’s not working for me in my style.css file, but it work when I paste your code in : wp-content/plugins/the-events-calendar/src/resources/css/events-admin.min.css

    But I have to do it after every update…

    • This reply was modified 8 years, 1 month ago by Arnaud.
    #1482794
    Patricia
    Member

    Hi Arnaud,

    Please add the following snippet in your theme’s functions.php file. With this snippet you’ll be able to achieve what you want without having to re-add the code after each update:

    add_action('admin_head', 'hide_mt_venue_and_organizer');

    function hide_mt_venue_and_organizer() {
    echo '<style>
    table#event_tribe_venue {
    display: none !important;
    }

    table#event_tribe_organizer {
    display: none !important;
    }
    </style>';
    }

    Cheers!

    Patricia

    #1483718
    Arnaud
    Participant

    Thank you a lot Patricia, it work perfectly !

    #1483785
    Patricia
    Member

    Hi Arnaud,

    You are welcome! If you need an assistance again or have other concerns, please feel free to open up a new thread, we’ll be more than happy to help you!

    Cheers,

    Patricia

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Removing venue and organizer fields from back office’ is closed to new replies.