Support

Home Forums Event Espresso Premium Remove "Event Check-In" tab

Remove "Event Check-In" tab

Posted: December 18, 2014 at 1:48 pm

Viewing 17 reply threads


ac

December 18, 2014 at 1:48 pm

Hi we don’t use the Check-In feature – is it possible to remove the tab?

Thanks,


Lorenzo Orlando Caum

  • Support Staff

December 18, 2014 at 3:05 pm

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/


Lorenzo


ac

December 18, 2014 at 3:19 pm

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 …)


ac

December 18, 2014 at 6:26 pm

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


Lorenzo Orlando Caum

  • Support Staff

December 18, 2014 at 7:15 pm

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.


Lorenzo


ac

December 18, 2014 at 7:24 pm

4.4.7

in your code what is “.event-espresso_page_espresso_registrations”


ac

December 18, 2014 at 7:31 pm

Here is what I want todo:

1) Under Registrations I want to remove the “Check-In” tab with:
echo ‘<style> .event-espresso_page_espresso_registrations nav-tab-wrapper .nav-tab[rel=”ee-tab-1″] {display:none;}</style>’;

2) Under Events I want to remove the “Import” tab with:
echo ‘<style> .event-espresso_page_espresso_events nav-tab-wrapper .nav-tab[rel=”ee-tab-2″] {display:none;}</style>’;

3) I want to remove the “Contact List CSV export” button

Thanks,


Dean

December 19, 2014 at 4:12 am

Hi,

Based on what Lorenzo and yourself have said so far, this seems to work fine (added to a site specific plugin):

function hide_stuff() {
	?>
	<style>
		.event-espresso_page_espresso_registrations .nav-tab-wrapper a[rel="ee-tab-1"] {display:none;}
		.toplevel_page_espresso_events .nav-tab-wrapper a[rel="ee-tab-2"] {display:none;}
		#contact-list-csv-export { display: none;}
	</style>
<?php
}

add_action('admin_head', 'hide_stuff');


ac

December 21, 2014 at 3:02 pm

Hi Dean, Thanks for the code.

The following code works:
/* removes the import tab from events */
.toplevel_page_espresso_events .nav-tab-wrapper a[rel=”ee-tab-2″] {display:none;}
/* removes the contact list export button */
#contact-list-csv-export { display: none;}

——
This one not (tried both ways):
/* trying to remove the check-in tab from registrations */
.event-espresso_page_espresso_registrations .nav-tab-wrapper a[rel=”ee-tab-1″] {display:none;}
.toplevel_page_espresso_registrations .nav-tab-wrapper a[rel=”ee-tab-1″] {display:none;}

—–
Thanks G.


Lorenzo Orlando Caum

  • Support Staff

December 21, 2014 at 6:38 pm

Hi, what web browser are you currently using?


Lorenzo


ac

December 22, 2014 at 12:56 pm

We tested with Chrome, Safari & MS IE on Windows 7 & 8.


Lorenzo Orlando Caum

  • Support Staff

December 22, 2014 at 1:28 pm

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


Lorenzo


ac

December 22, 2014 at 1:43 pm

No. Caching. According to our testing it can’t be the caching.

Even this code works in Menu > Events (tab Import is removed)
.toplevel_page_espresso_events .nav-tab-wrapper a[rel=”ee-tab-2″] {display:none;}

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.
This code removes everywhere the 1st & 3rd tab.
.nav-tab-wrapper a[rel=”ee-tab-1″] {display:none;}
.nav-tab-wrapper a[rel=”ee-tab-3″] {display:none;}

If the core code would be:
.nav-tab-wrapper a[rel=”ee-tab-import”] {display:none;}
.nav-tab-wrapper a[rel=”ee-tab-check-in”] {display:none;}

It would work.


Lorenzo Orlando Caum

  • Support Staff

December 22, 2014 at 3:00 pm

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


Lorenzo


ac

December 22, 2014 at 3:12 pm

Hi Lorenzo,

Thanks for all your work. I have commented what is working and what not.

function hide_stuff() {
?>
<style>
/* NOT Working – remove Check-In Tab from Registrations */
.event-espresso_page_espresso_registrations .nav-tab-wrapper a[rel=”ee-tab-1″] {display:none;}
/* Working OK – Remove Import tab from Events */
.toplevel_page_espresso_events .nav-tab-wrapper a[rel=”ee-tab-2″] {display:none;}
/* Working OK – Remove Contact List Export button */
#contact-list-csv-export { display: none;}
</style>
<?php
}

add_action(‘admin_head’, ‘hide_stuff’);


Josh

  • Support Staff

December 22, 2014 at 4:06 pm

You could try a partial match like this instead:

a[href*="action=event_registrations"]{display:none;}


ac

January 3, 2015 at 3:14 pm

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.


Dean

January 5, 2015 at 2:23 am

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;}
.toplevel_page_espresso_registrations .nav-tab-wrapper a[rel=”ee-tab-1″][href*=”action=event_registrations”] {display:none;}

Viewing 17 reply threads

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.

Event Espresso