Support » Plugin: The Events Calendar » Community Events Tags option

  • lloydy1980

    (@lloydy1980)


    When logged in as a user there is no option to create event tags and in the settings there is no option to activate or deactivate the tab. Can you provide code please so that the the tab for having tags can be removed? As when you have 1000 events you’ll end up with a gigantic list of tags which looks daft on mobile even with 20. Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Andras Guseo

    (@aguseo)

    Hi @lloydy1980

    Thanks for reaching out.
    I’m sorry, I don’t exactly understand what you would like to achieve.

    Would you like to:
    – totally disable the usage of event tags in the backend and frontend
    – hide the tags on the frontend
    – hide the tags on the frontend only in mobile view

    Thanks for clarifying!
    Andras

    lloydy1980

    (@lloydy1980)

    Hi. Thanks for your reply. Yes removing the event tags all together will be the best option. From front and back end. Otherwise I will end up with gigantic list! Which on mobile when creating an event is long enough as it is with just 30 tags. never mind after thousands of people will create some. Hope that makes sense? Thanks

    lloydy1980

    (@lloydy1980)

    Any update on this one please?

    Plugin Contributor Andras Guseo

    (@aguseo)

    Try copying this in your child theme’s functions.php file:

    add_action( 'init', 'unregister_tribe_events_tags' );
    
    function unregister_tribe_events_tags() {
    	unregister_taxonomy_for_object_type( 'post_tag', 'tribe_events' );
    }

    Hope this helps.

    Cheers,
    Andras

    Plugin Contributor Andras Guseo

    (@aguseo)

    Here’s a shorter form:

    add_action( 'init', function () { unregister_taxonomy_for_object_type( 'post_tag', 'tribe_events' ); } );

    A.

    lloydy1980

    (@lloydy1980)

    Hello. I have tried both versions and can confirm that none of them remove the option not to include tags on the front end. Did this work on your end? Can you also look at both of my other messages below this chat? Thank you guys

    Plugin Contributor Andras Guseo

    (@aguseo)

    Hey @lloydy1980

    Both of them worked for me. When I added them to functions.php and reloaded the dashboard, then:
    – the ‘Tags’ menu point did not appear any more under ‘Events’
    – When creating an event the ‘Tags’ section did not appear any more on the right side
    – When trying to add an event through the Community Events add-on from the front-end I could not see the Tags option any more.

    Screenshot before:
    https://dl.dropbox.com/s/dg4zvpz118sk5so/shot_191127_144400.jpg

    Screenshot after:
    https://dl.dropbox.com/s/0tpfjr6r7gnnnkf/shot_191127_144502.jpg

    A.

    lloydy1980

    (@lloydy1980)

    Hi. I am using the code snippets plugin and I have now tested on my staging site and live site and nothing at all changes. Tags are on back-end and front end. I have copied and pasted exactly, as per below:

    add_action( ‘init’, function () { unregister_taxonomy_for_object_type( ‘post_tag’, ‘tribe_events’ ); } );

    Plugin Contributor Andras Guseo

    (@aguseo)

    Can you try adding it to the functions.php file of your child theme?

    A.

    Hello. When you have a code snippets plugin, it does not allow adding to child theme php. It does not save from the php options. Why does the code not work from a code snippets? Thank you

    Can you check if this works from within the main code snippets plugin please?

    Hi. Or some CSS if you could. I can add this to my theme from the customiser. If the code snippets does not work for yourself? Thank you

    Plugin Contributor Andras Guseo

    (@aguseo)

    Try this css:

    .tribe_community_edit .tribe-section-taxonomy {
    	display: none;
    }

    This should hide that section.
    A.

    Hello. I can confirm this has worked. Thank you kindly for providing

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.