• Resolved originalconcept

    (@originalconcept)


    Hello!
    I need to hide something, I know CSS is not the best but how do I hide something for ALL user roles except SuperAdmin?

    In this case admin rule should also be included in the hidding.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hello @originalconcept

    There is no specific feature in the plugin to do this based on user role.

    I checked and it doesn’t look like WordPress adds role specific CSS classes to the body. Not sure if you can modify that. The only way I can think of how to do this is to figure out a class that is unique for the role and add your CSS classes accordingly.

    Tip – The :not pseudo-class might be useful in your case if you can find the right CSS classes – https://developer.mozilla.org/en-US/docs/Web/CSS/:not

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Apply rule to all roles except SuperAdmin’ is closed to new replies.