Okay
  Public Ticket #1851346
Hide Edit Yellowpencil Button
Closed

Comments

  • Steelsmith started the conversation

    I am not able to hide the "Edit Page - YellowPencil" button in the page/post editor. I've tried several ways and am stumped. It shows for all users as well. Can you point me in the right direction?

  •  435
    David replied

    Hi,

    You want to hide it for specific user role or generally for all users? 

    Best regards,
    WaspThemes team

    And don't forget to rate our plugin, it means a lot to us!

  • Steelsmith replied

    Hi David,


    I'd like to hide it for all users, assuming that's the easiest solution. 

  •  435
    David replied

    Okay. So here are the required steps.

    1) Install this plugin - https://wordpress.org/plugins/add-admin-css/

    2) Go to WP Dashboard > Appearance > Admin CSS

    3) Add this CSS there

    a.yp-btn {
        display: none;
    }

    4) That's it!

    Why do you have to do it this way? That's because regular CSS is applied to frontend of your website and not the backend. And in order to hide that button we need to add some backend CSS to disable it.


    Best regards,
    WaspThemes team

    And don't forget to rate our plugin, it means a lot to us!

  • bpasko replied

    I a trying to do the same, but I want to restrict this to certain users other than the administrator.  When I implement the solution below it applies to all users.

  •  435
    David replied

    Try using Adminimize plugin. That will restrict what different user roles see.

    Best regards,
    WaspThemes team

    And don't forget to rate our plugin, it means a lot to us!

  • bpasko replied

    Adminiimize can only restrict the WP Daashboard Menu items.  There are no options to hide content inside an administrative page.

  •  127
    Zafer replied

    Hi There,

    you can hide it by add the following CSS to admin page.

    .yp-btn{display:none !important;}


  •  1
    rodolfo replied

    you can hide it by add the following CSS to admin page.

    .wyp-btn{display:none !important;}