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

Leave a Reply