Posted: December 18, 2014 at 1:48 pm
|
Hi we don’t use the Check-In feature – is it possible to remove the tab? Thanks, |
Hi, try adding this to your child theme’s functions.php file: //* Hide Event Check-in tab in WP Dashboard function ee_hide_event_checkin_tab() { echo ''; } add_action('admin_head', 'ee_hide_event_checkin_tab'); http://cl.ly/image/3k1c2j1N310D It can also be added to a site specific plugin which can then be added to your site: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ — |
|
|
Hi Lorenzo, Thanks for the quick reply. Added the code to a site specific plugin but it doesn’t work. NOTE: The site specific plugin has other code which works (eg: Hide Espresso Meta Box etc …) |
|
After some testing the code works by removing the page id and adding h2 to the wrapper – however this makes it not unique and would remove tab1 on every page – how can I find out the page id (eg:event-espresso_page_espresso_registrations”?? |
Hi, Page IDs are assigned to public-facing posts and pages. What version of Event Espresso are you running? I tested on 4.4.7. — |
|
|
4.4.7 in your code what is “.event-espresso_page_espresso_registrations” |
|
Here is what I want todo: 1) Under Registrations I want to remove the “Check-In” tab with: 2) Under Events I want to remove the “Import” tab with: 3) I want to remove the “Contact List CSV export” button Thanks, |
|
Hi, Based on what Lorenzo and yourself have said so far, this seems to work fine (added to a site specific plugin):
|
|
Hi Dean, Thanks for the code. The following code works: —— —– |
Hi, what web browser are you currently using? — |
|
|
We tested with Chrome, Safari & MS IE on Windows 7 & 8. |
Hi, would you happen to have any caching plugins / services running on your site or a CDN? If so could you clear the cache? I’ve tested Dean’s updated coding and that also works (EE 4.4.7, WP 4.1 & a default WP theme): http://cl.ly/image/3V3b0d2Y1i0d — |
|
|
No. Caching. According to our testing it can’t be the caching. Even this code works in Menu > Events (tab Import is removed) When you edit an event the import tab is back. I think the problem is the core code as it doesn’t unique identify the tab. If the core code would be: It would work. |
Hi, could you clarify what isn’t working? This support post was for removing the event check-in tab but it now looks like you are trying to remove / hide multiple areas in the WordPress dashboard. Also, please post the exact code that you are using here so we can test it out. Thanks — |
|
|
Hi Lorenzo, Thanks for all your work. I have commented what is working and what not. function hide_stuff() { add_action(‘admin_head’, ‘hide_stuff’); |
You could try a partial match like this instead:
|
|
|
Thanks Josh, To remove the “Check-In” tab in Registrations I tried the following 2 codes – but both don’t work. .event-espresso_page_espresso_registrations .nav-tab-wrapper a[rel=”ee-tab-1″] a[href*=”action=event_registrations”] {display:none;} .toplevel_page_espresso_registrations .nav-tab-wrapper a[rel=”ee-tab-1″] a[href*=”action=event_registrations”] {display:none;} Thanks. |
|
Hi, There’s a slight typo in Josh’s code, try this instead: .event-espresso_page_espresso_registrations .nav-tab-wrapper a[rel=”ee-tab-1″][href*=”action=event_registrations”] {display:none;} |
The support post ‘Remove "Event Check-In" tab’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.