Replace your code with this code:-
add_action('wp_footer', 'myCssCode', PHP_INT_MAX);
function myCssCode() {
?>
<style>
#toplevel_page_wpcf7,
#wp-admin-bar-wp-logo,
#screen-meta-links,
#menu-tools,
#wp-admin-bar-wpseo-menu,
#footer-upgrade,
#toplevel_page_wpfront-user-role-editor-all-roles,
#toplevel_page_vc-general,
#menu-settings,
#toplevel_page_wpseo_dashboard,
#toplevel_page_revslider,
#toplevel_page_themepunch-google-fonts,
#menu-appearance,
#wp-admin-bar-snap-post,
.error
{
display:none;
}
</style>
<?php
}
Related Posts:
- Rename UPLOADS folder with custom WP_CONTENT_DIR
- How to move wp-content (or uploads) outside of the WordPress directory
- Limit Media Library to Given Folder
- Automatically wrap post image in div
- media_handle_upload weird thing
- Looking to display non-image files in Gallery with logo specific to file type
- Syncing Avatars across multisite
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- Hide upload image fields for the different media upload popups
- How to insert a sitemap within a subsite when using WordPress multisite
- Add a InfoBox in the media upload window
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- WordPress media uploader – upload tabs not hiding
- custom upload directory only for plugin uploads
- problem in uploading attachment to custom directory
- Installing new theme on running site
- Personalized Gallery what are my options?
- Can’t upload format files on media library
- the temporary save folder is wrong
- Altered Media Library URLs
- How do I enable the text editer in my WordPress theme? [closed]
- Style Radio Buttons inside Edit Page (Custom Fields)
- Is there a way to limit multi upload in media upload box?
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- How can I add a Description column to the media library browser screen?
- Upload files in wordpress
- Custom image sizes ignored in WP 3.5
- WordPress uploads directory. Featured Images storage
- Customizing Additional CSS editor
- Essential technical features for high-end WordPress web hosting? [closed]
- Add button to TinyMCE bar without creating a plugin
- Default value for add_settings_field
- Disable Visible Edit Shortcuts in the Customizer
- How to make a script load after Custom Block is loaded in the editor?
- How to edit the actual paragraph dropdown in TinyMCE with custom text styles
- using upload image with media_handle_upload .. but !
- wp_nav_menu() custom container and container_id
- FireFox Inspector :: find CSS file related to
- How-to inspect filter-able $vars?
- pagination in woocommerce order history page
- Custom CSS for full post vs. excerpt (Content Options)
- How to run a test WordPressMu to WordPress3 update?
- Comparing two WordPress installations
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- How can I add a button to quicktags-toolbar?
- custom session variables being lost in FF [closed]
- How to link external JavaScript files?
- Where to add one custom end point and its function?
- How to create a list of items with fields in WordPress?
- For custom templates, is it better to use `template_include` or `type_template`?
- Filter posts by custom taxonomy terms
- shortcodes – style them or change/remove the square brackets?
- Dynamic title in WordPress homepage
- Updates for a private theme
- Hi, I wanted to make custom search with multiple fields
- Contact From 7 Custom Validation Issues
- How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]
- education system [closed]
- Search widget will search everything in the site, how to limit to only search gallery name
- custom post type – page template
- How to add custom control to a page?
- Navigation label for page in custom theme
- How to hook up search results page to a back-end page?
- What requirements for ACF custom fields key and name properties?
- Custom CSS at Appearance > Edit CSS is missing after update [closed]
- Removing blank space below header [closed]
- Custom Search on Custom Page while preserving the main search function
- If the image variable is specified, show image, if not no code
- WordPress noob, assign custom stylesheet using @import or if? Didn’t work for me
- I want to print a message in post ” After one month from publish date”
- Is there another way to customize a parent template file besides adding the file to a child theme?
- Replacing words in WordPress or theme (not in content)
- WordPress Child Theme Stylesheet being loaded before Parent’s minified .css
- How to create custom search page
- How can i display custom menu in sidebar?
- Custom select query two tables by a meta key
- How to Add Additional Search Button?
- WordPress pagination with custom post type?
- How to replace blog page url with subdomain at all places, even in xml sitemap?
- Add array of post id’s to a category?
- How to create social Share Buttons Without Plugin
- Saving of Draft is failing
- Custom Avatars for WordPress Comments VIA Website URL?
- Send default WooCommerce email when switching from custom order status
- Combine Categories & Custom Taxonomy
- A delete/trash all function?
- How to customize theme?
- Why, when it comes to custom background and image, does ‘The first value registered’ win?
- Unable to retrieve data from multiple WordPress websites on same server
- Customizing the built-in Media Playlist
- Best way to create a page outside of the pages list
- Unable to show messages using ‘admin_notices’
- Search a meta field for a value in all posts
- Single page template
- Document.body.scrollTop in WordPress
- Integrate Woocommerce to a custom theme
- Best way to modify theme
- how to add a page
- How to move a widget below the menu in a sidebar in twenty thirteen?
- How to apply filters if editing specific template