How to remove "Images to be imported" menu from WordPress toolbar?

Direct Webstore

Well-Known Member

techiebraj

New Member
We're all individuals here. Well, at least, I am. LOL ;)
I thought this forum is support forum where support team see the query and reply :)

#wpadminbar .ab-label {
display: none; }
Thanks for the code. Yes I can hide it with CSS but all the code will still load but it will be hidden, so I think its better to dequeue it with PHP snippet so that everything will be removed and the related code will not load.
 

Direct Webstore

Well-Known Member

Direct Webstore

Well-Known Member
I think its better to dequeue it with PHP snippet so that everything will be removed and the related code will not load.
OK. Do that then. The difference in the site's responsiveness will only be noticeable in your imagination. But whatever you're happy with.

But also take into account ...

1. The Snippets plugin's impact, if you use that for the snippet.
2. The impact, hassle and/or possible overkill of using a child theme for this one little trivial thing, if using the snippet in functions.php
3. The hassle of editing the functions.php with every theme update if not using a child theme.

VS ...

The relatively low impact of a simple "Set and Forget" CSS "snippet". PLUS the fact that it's operating in the back end (WP-Admin) where it has no impact on the front of the site's responsiveness anyway.

Up to you. But I'd Google "The KISS principle" if I was you.
 
Last edited:

the_lyall

Active Member
PHP is usually the RIGHT way to do it but in this case the CSS is the most realistic option. The plugin files are encrypted (not all of them, but most of them. I haven't checked but safe to assume this one is too) so it's hard to write a snippet to hook in. As Mr. Webstore says this is purely for back end admin access and won't affect the site load time. Even in admin you're talking milliseconds to load a single admin menu unless you're using very slow hosting, so in my opinion isn't worth the time to try and dequeue it unless support will write one for you which is unlikely :)
 

Direct Webstore

Well-Known Member
But also take into account ...

1. The Snippets plugin's impact, if you use that for the snippet.
2. The impact, hassle and/or possible overkill of using a child theme for this one little trivial thing, if using the snippet in functions.php
3. The hassle of editing the functions.php with every theme update if not using a child theme.


The plugin files are encrypted

4. And this too. Should have been No 1 ... LOL ;)
 
Top