Archived topic
How To Add Class To Hook In ACP
5 replies · Started by Anthony Parsons on July 5, 2015
Hi,
Multisite install, I want to hide the hook option from everyone in a multisite install. I've read through lots of responses here and haven't found a way to do this, so I'm wondering if there is a location I could add a custom class into a php file or such that would allow me to then target that element via CSS to hide.
Admin > Appearance > GeneratePress - this menu I want to hide that element only (hooks), but at present they all use the same classes, only differing whether activated or not.
The easiest method may be to use this plugin: https://wordpress.org/plugins/menus/
Let me know if it does the trick or not :)
Hmmm... thanks Tom, but no dice. It doesn't register custom menu items such as GeneratePress being added to the theme section.
Ah, okay.
Give this a try instead: https://gist.github.com/generatepress/9d2db8be7f6597e48136
Adding PHP: http://generatepress.com/knowledgebase/adding-php-functions/
Tom, you're a genius, thank you very much. Allows them to enable it, but not see the menu item. Beautiful... which allows me to come along and insert code for them still after checking it.
Genius... thank you so much.
No problem! Glad I could help =)
