Task:
Recently we had a client requirement where in we needed to hide the wordpress yoast seo setting on profile screen. If you would like to hide the worpdress yoast seo setting on user profile. This can be be done in 3 different ways either using inline style sheet, enqueuing custom css file for admin or using plugin. Adding custom css file would be best as it would help you keep everything organized & also let you add more in future. You can also go plugin route if your plugin junkie
Approach 1: Adding inline stylesheet
Add the below code to your functions.php
Approach 2: Enqueuing stylesheet
Create admin.css at root of your theme (For better organisation create css under folder). Past the below snippet to created css file.
Add the below code snippet to functions.php
Note: Modify the css path if its not create at the theme root
Approach 3: Using plugin
WordPress plugin “Add Admin CSS” allows you to add inline css or via url.
If you need any further help on this topic, comment below and we are happy to help as quick as possible 🙂