[Resolved] How To Add Class To Hook In ACP

Home Forums Support [Resolved] How To Add Class To Hook In ACP

Home Forums Support How To Add Class To Hook In ACP

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #118723
    Anthony Parsons

    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.

    #118808
    Tom
    Lead Developer
    Lead Developer

    The easiest method may be to use this plugin: https://wordpress.org/plugins/menus/

    Let me know if it does the trick or not 🙂

    #118878
    Anthony Parsons

    Hmmm… thanks Tom, but no dice. It doesn’t register custom menu items such as GeneratePress being added to the theme section.

    #118914
    Tom
    Lead Developer
    Lead Developer
    #118931
    Anthony Parsons

    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.

    #118964
    Tom
    Lead Developer
    Lead Developer

    No problem! Glad I could help =)

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.