Removing slug error message

Home Forums Calendar Products Events Calendar PRO Removing slug error message

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1130846
    Stephen
    Participant

    I get this warning: The page “Events Calendar” uses the “/eventscalendar” slug: the Events Calendar plugin will show its calendar in place of the page.

    Edit the page slug or edit Events settings.

    How can I hide this message as I require that slug?

    #1131277
    Nico
    Member

    Hi there Stephan,

    Thanks for reaching out to us on this! I can help you out 🙂

    If you dismiss the notice (x icon top right) it won’t show up anymore for that user. But if for some reason you want to hide it permanently for all users, just add the snippet below to your theme (or child theme) functions.php file:

    /* tribe remove slug conflict notice */
    function tribe_remove_slug_conflict_notice ( ) {

    if ( !class_exists('Tribe__Admin__Notice__Archive_Slug_Conflict') ) return;
    remove_action( 'admin_init', array( Tribe__Admin__Notice__Archive_Slug_Conflict::instance(), 'maybe_add_admin_notice' ) );
    }

    add_action ( 'init', 'tribe_remove_slug_conflict_notice' );

    Please let me know if that works,
    Best,
    Nico

    #1132215
    Stephen
    Participant

    I am using Eat by Yootheme that uses Warp, not sure where to add this code

    #1132604
    Nico
    Member

    Thanks for the follow-up Stephen!

    If you are already using a third-party child theme then using the Code Snippets plugin might help here in order to not introduce custom code in the theme or child theme.

    Again, the simple option is to just dismiss the alert: https://cloudup.com/cl27tkrGSRw – remember it’s a per user setting.

    Best,
    Nico

    #1138719
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Removing slug error message’ is closed to new replies.