WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Yoast news metabox in dashboard for registered users (12 posts)

  1. Piet
    Member
    Posted 2 years ago #

    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/

  2. Moogle Stiltzkin
    Member
    Posted 2 years ago #

    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 ?

  3. Moogle Stiltzkin
    Member
    Posted 2 years ago #

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

    http://w-shadow.com/blog/2008/12/20/admin-menu-editor-for-wordpress/

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

  4. Piet
    Member
    Posted 2 years ago #

    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!

  5. Moogle Stiltzkin
    Member
    Posted 2 years ago #

    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 ?

  6. Moogle Stiltzkin
    Member
    Posted 2 years ago #

    Piet,

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

    http://mognet.no-ip.info

  7. Piet
    Member
    Posted 2 years ago #

    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...

  8. Moogle Stiltzkin
    Member
    Posted 2 years ago #

    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

  9. Piet
    Member
    Posted 2 years ago #

    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!

  10. Piet
    Member
    Posted 2 years ago #

    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.

  11. DAVIO
    Member
    Posted 2 years ago #

    Hi,
    where do you add that code to?

  12. DAVIO
    Member
    Posted 2 years ago #

    Hi,
    where do you add that code to?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic