Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Showing menu items in dashboard/editing screens #8

Open
DigitalBerry opened this issue Apr 29, 2020 · 7 comments
Open

Issue: Showing menu items in dashboard/editing screens #8

DigitalBerry opened this issue Apr 29, 2020 · 7 comments

Comments

@DigitalBerry
Copy link

I'm getting an issue that causes all the pages to display on the admin "menu" screen, and when editing using Elementor.

Here's some screen grabs:

WP admin Menu screen - https://snipboard.io/GkHoQ7.jpg

ElementorPro theme builder header section editing screen - https://snipboard.io/yH9NYU.jpg

I narrowed the issue down to Slate after deactivating all plugins and switching them on one by one until the issue appeared, and it did with Slate.

@DigitalBerry
Copy link
Author

Any update on this, its been a couple of weeks now!

I really like the plugin, but will have to remove it from 30+ sites if this isn't fixed soon.

@ryansommers
Copy link
Owner

Hi DigitalBerry,

I just installed the free Elementor plugin from the WP plugin directory and am not seeing the issue. Are there specific steps I need to take to reproduce what you're seeing?

@DigitalBerry
Copy link
Author

The only possible connection I can make it to is a cache issue (I use Siteground) however, I don't run any form of cache on my dev sites and it still appears.

@DigitalBerry
Copy link
Author

I see this error too sometimes within the Menu admin panel...

Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/plugins/slate-admin-theme/slate-admin-theme.php:54) in /public_html/wp-admin/admin-header.php on line 9

@DigitalBerry
Copy link
Author

Hi Ryan,
So I found some CSS that hides it, thought I would share...

.post-state { display: none;}

@dovy
Copy link

dovy commented Jul 28, 2020

The .post-state is also an issue for Redux Framework 4. Your filter found here is the issue: add_filter( 'display_post_states', 'slate_pro_post_state' );. I'm not sure why, but this is firing on the front-end and causing issues.

Perhaps bind this to the admin?

@AmibeWebsites
Copy link

This is how I solved it:

// Replace slate filer that prints out menu post states in Elementor
add_action('admin_init', function()
{
    remove_filter('display_post_states', 'slate_post_state', 11);
    
    add_action( 'current_screen', function()
    {
        if (get_current_screen()->id === 'nav-menus') add_filter('display_post_states', '__return_false', 11);
    });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants