you can modify template file at wp-content/plugins/events-manager/templates/buddypress/profile.php and then remove that area or add php condition to check if bookings is disabled
to use templates: http://wp-events-plugin.com/documentation/using-template-files/
sample path: wp-content/themes/Your Theme/plugins/events-manager/buddypress/profile.php
Ah, I see. In that case I’d like to make it an improvement request:
* implement a condition [if booking is enabled] show [link to attending events]
I tried your suggestion, but it doesn’t seem to change anything. Neither within the events tab in the user profile nor within the profile menu in the admin bar.
So for the time being I simply hid the link using CSS:
#attending-personal-li, #wp-admin-bar-my-em-events-attending { display: none; }
That did the trick, plus I’m not overwriting a template file that might get some changes in the near future.
Hi flashbytes I have the same issue. Which CSS file did you stick the code into? Theme, BuddyPress? It didn’t work for me…
@celticdancer
I dropped the definition into my theme’s style.css.
It would be a little extreme, but in some cases it’s necessary:
use “!important
” in case it’s overridden by another definition.
#attending-personal-li, #wp-admin-bar-my-em-events-attending { display: none!important; }
If you’re using Firefox, I recommend using the extension “Firebug” to look at the html and css structure.
@flashbytes Thanks for taking the time. Alas it didn’t seem to work for me my theme is relying on so many different CSS files…
I instead went to wp-content/theme/Your Theme/plugins/events-manager/buddpress/profile.php and deleted everything after ” <h4><?php _e(“Events I’m Attending”, ‘dbem’); ?></h4>” and that did it for me.
I am greatful for this helpful fantastic community. Hopefully when I get better at PHP, I’ll be able to give back to this forum!
Thanks again flashbytes 🙂