Support » Plugin: The Events Calendar » Stop message from showing?

  • Resolved aggk

    (@aggk)


    Hi,

    Is there any way to stop this message from showing, perhaps through a filter?

    *******
    The Page “kalender” uses the “/kalender” slug: the Events Calendar plugin will show its calendar in place of the page.

    Edit the Page slug or ask the site administrator set a different Events URL slug.
    *******

    It shows up when Editors log in, we deliberately use this permalink for a page and display the Events Calendar there through our theme.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there @aggk!

    Thanks for reaching out — sorry to hear that you are experiencing difficulties.

    You’ll have to remove the page that has the same name as your slug. The Events Calendar 📅 doesn’t use the actual page, it’s a custom post type. Removing or renaming this page should make that message go away.

    I was able to replicate. My slug is /events so I created a page with the slug of events and get the same error → http://p.tri.be/TJzNDs

    Take care,
    Ed ✌️

    Thank you Ed,

    But is there any way to remove that message through a codesnippet?
    Everything is working well, we deliberately use this permalink for a page and display the Events Calendar there through our theme.

    Thanks!

    You can try this in your functions.php

    /* 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' );
    Ed

    (@erishel)

    Hey there,

    Since this topic has been inactive for a while, I’m going to go ahead and mark as resolved. Don’t hesitate to reopen or create a new topic if you still need help! 😄

    Take care,
    Ed 🤟

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stop message from showing?’ is closed to new replies.