No “Edit site/Edit page” buttons in the toolbar?

  • Unknown's avatar

    A small thing. Here’s a screenshot of a section of my admin toolbar when I self-hosted my site:

    I don’t see anything like this since I started hosting it on WordPress.com. Is this a setting I could change in order to see it? It was very handy.

    Instead, I now have to click a few times to find and edit a page when I see a needed change.

    Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    We use a custom admin bar on WordPress.com sites, so it is different than the one you see with self-hosted sites. However, you can have the self-hosted version if you wish by doing the following:

    1. Install Code Snippets on your site: https://wordpress.com/plugins/code-snippets
    2. Activate code snippets either on that installation page or by going to My Site → Plugins
    3. Go to My Site → Snippets → Add New.
    4. Create a new snippet and name it Disable WordPress.com admin bar or something similar
    5. Copy and paste the included PHP code into the Code text area
    6. Choose “Run snippet everywhere.”
    7. Save the changes.

    Here is the code you will need:

    function disable_wpcomtoolbar ( $modules ) {
        if ( isset( $modules['masterbar'] ) ) {
          unset( $modules['masterbar'] );
        }
        return $modules;
    }
    add_filter( 'jetpack_get_available_modules', 'disable_wpcomtoolbar' );
    

    Hope that helps. Please let us know if you have any more questions.

  • Unknown's avatar
  • The topic ‘No “Edit site/Edit page” buttons in the toolbar?’ is closed to new replies.