Change WordPress user roles and capabilities Forums How to or FAQ Hide with CSS not shortcode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6968
    daveatdrum
    Participant

    Hi,

    I’ve been using this which is great for html content – https://www.role-editor.com/shortcode-content-view-access-restriction/

    Is there a way to do this via CSS though? For example I want to add a class to my page builder row or a third party widget where I cannot place this shortcode, I can add a class for CSS though.

    Thank you.

    #6969
    Vladimir
    Keymaster

    Hi,

    URE Pro does not manipulate with CSS classes currently.

    If you can/will add CSS class manually, how do you plan to define if this class should have display property value ‘block’ or ‘none’ in relation to the current user?

    #6971
    daveatdrum
    Participant

    Yes, that’s a good point.

    I’ve managed ok so far with your shortcodes (for example a logged in user will see a different homepage/menu to logged out users), it’s just some third party widgets don’t offer shortcodes so I was hoping there may have been some kind of work around for this.

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