-
AuthorPosts
-
December 11, 2015 at 2:11 am #550798
Hi Team Enfold,
I have seen Ismael’s great suggestion on how to remove the Theme Options links from the wp-admin toolbar located here: https://kriesi.at/support/topic/disable-theme-setting-area-in-cms-for-specific-users-admin/ but I do not know if it is because that was for an old version of enfold or what, but it is not working for me. It is removed from the front end, but anyone with an administrator account still sees it from the back end. Can you try it yourself and see? There must be a way to hide it in the admin back end as well, not just the front end. Its wp-admin does not read what is in custom.css Please advise. Thanks!
December 13, 2015 at 6:11 pm #551746Hey mercury9 – Hopefully this is a solution for you…
I wanted to achieve the same thing and added this to my child function file:function remove_my_nodes( $wp_admin_bar ) {
$wp_admin_bar->remove_node( ‘avia’ );
}Best of luck!!
December 13, 2015 at 9:32 pm #551771Hi jeeves, I tried that but it did not work. I am not using a child theme. I just replace my theme functions code every time I update enfold. Do I need to alter it a little bit since I am putting it in the enfold functions and not using a child theme? Also, are you using this code in connection with Ismael’s code that removes it from the front end? Thanks for trying to help!
December 13, 2015 at 11:14 pm #551808Hey!
Please use the following
function remove_my_nodes( $wp_admin_bar ) { $wp_admin_bar->remove_node( 'avia' ); }
make sure you code the code from the site and no your email
Thanks a lotCheers!
BasilisDecember 14, 2015 at 12:43 pm #552158Thanks Basilis ,
(apologies mercury9), I should’ve put that code in a code block!!! This code for functions file is all you need in this case – you don’t need any css ‘display:none’ attributes as Ismael was suggesting as they don’t affect the backend view.
You can place that code at the bottom of your core Enfold functions file here…
wp-content/themes/enfold/functions.php
PS – I highly recommend you convert your site to using a child theme. You can create a basic child theme, switch to it and then use the facility in Enfold Theme options under ‘Import/Export’ to import your Parent Theme Settings. I’ve not done it for a long time, but it brings pretty much everything over, You may have to reconfigure your widgets and a few other settings, but the pay off is a small amount of pain now, for ease of updating later on. Obviously, make a restorable backup of the site before doing any of this – even if it’s to simply have a version you can copy your site settings from.December 15, 2015 at 8:14 am #552835Hi,
Thanks for the input @jeeves, couldn’t agree more about using a child theme: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/
Please let us know if you should need any further help @mercury9
Best regards,
RikardFebruary 4, 2019 at 7:53 pm #1062823how can we do the same thing for the dashboard link(left sidemenu) ? what is the node name for it?
February 5, 2019 at 3:33 am #1062984Hi,
I’m not sure what exactly you are trying to refer to? please upload a screenshot/mockup to one of the below sites and share the link here so we can help you better :)
https://snag.gy/
https://ctrlv.cz/en/
https://imgur.comBest regards,
VinayFebruary 5, 2019 at 5:04 pm #1063224You can see the link from here:
https://imgur.com/a/iHnPlYA
I want to remove the “Enfold” link, same way (remove node) without using css.- This reply was modified 5 years, 10 months ago by amrod1.
February 9, 2019 at 8:50 pm #1064986Hi amrod1,
Here is a thread for you to consider
https://www.quora.com/How-do-I-change-and-or-hide-the-name-of-a-WordPress-theme-from-a-page-sourceIf you need further assistance please let us know.
Best regards,
VictoriaFebruary 10, 2019 at 12:31 am #1065032Hi Victoria
Thank you for the reply but that is not I want.
I want to remove the “Theme Options” link in the admin bar + “Enfold Child” link on the dashboard menu
https://imgur.com/a/iHnPlYA
And I dont want to use simple css “display:none” code to do this.February 11, 2019 at 7:00 pm #1065611Hi amrod1,
You might want to check the WordPress forums on how to hide the theme link or customize the dashboard menu.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.