WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WordPress SEO by Yoast] Yoast news metabox in dashboard for registered users

[Resolved] [Plugin: WordPress SEO by Yoast] Yoast news metabox in dashboard for registered users

  • The problem I am having is not with the functionality of the WordPress SEO plugin, that all works perfect.

    My problem is related to the following. I have a large multisite network where users have to register to be able to leave ratings and comments. These users all have the subscriber role. Now when a user logs in and arrives at the dashboard, there is a huge metabox advertising Yoast Latest News. Of course this box can be closed, but that is not the point. It should not be there in the first place. That box is fine for the admin, but it not fine for the users as there is nothing else on that page.

    So my obvious question is how to prevent the metabox from showing up on the user’s dashboard?

    screenshot available at: http://senl.in/mP7NU3 (Skitch)

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 11 replies - 1 through 11 (of 11 total)
  • My problem is the dashboard.

    The regular registered user can see the SEO in the dashboard ontop of the site.

    Is that suppose to happen ??

    I don’t think they need that feature. How do i hide it from non admins ?

    Would it be possible to have a setting in yoast to show or not show for non admin users ?

    Piet, maybe you can temporarily use Admin Menu Editor to remove that from showing, until Yoast comes back with a solution.

    Admin Menu Editor For WordPress

    http://wordpress.org/extend/plugins/admin-menu-editor/

    Thanks for the temporary solution Moogle. I think that I will hardcode it out with a function, will let you know when I have come around to do that. Also the word “SEO” in the admin bar (top of the screen) indeed needs to go!

    Piet, i noticed something

    If you go to your admin page. That yoast news thingy at the bottom right corner is an X.

    The text says remove this yoast news widget from ALL USERS dashboard. isn’t that what you wanted ?

    Piet,

    By the way this is my website. Hope you like it :}

    http://mognet.no-ip.info

    Hi Moogle,
    Thanks for your additional input. I tried to find what you mentioned, but on my own dashboard I already clicked the “X” to “dismiss” it, so now it doesn’t come back anymore. If the text said that it moves it from all users dashboard’s then that is not true as when I log in as a subscriber I get an empty dashboard with only Yoast’s Latest News metabox on the screen 🙁

    I like your website, nice and clean and variety of information. Just not fond of the music that autoplays…

    Yeah… i’m hoping that the music developer adds a feature that you can click to not play, and it will save in a cookie and remembers the next time you visit.

    *cross fingers

    Actually, with an existing user (subscriber role) I clicked the X and then I registered a new user and after login the metabox indeed had vanished!
    Thanks for that tip! Now I am on to the admin bar, solution follows shortly!

    OK here is the code to delete the box from the admin bar:

    function ipstenu_admin_bar_remove() {
            global $wp_admin_bar;
    
            /* Remove their stuff */
            $wp_admin_bar->remove_menu('wpseo-menu');
    }
    
    add_action('wp_before_admin_bar_render', 'ipstenu_admin_bar_remove', 0);

    source: Ipstenu – http://code.ipstenu.org/2011/customize-wp-admin-bar/, but for whatever reason that link goes to 404. I had his feed, so could copy it from there.

    Hi,
    where do you add that code to?

    Hi,
    where do you add that code to?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] [Plugin: WordPress SEO by Yoast] Yoast news metabox in dashboard for registered users’ is closed to new replies.