• Resolved jbw872634

    (@jbw872634)


    I am building a website that requires content restriction. It requires restriction of entire pages to only logged in users, and also requires restriction of some content on each page for certain roles.

    I have used shortcode to restrict certain content as documentation has provided, for example:

    [wppb-restrict user_roles=”editor”]

    content, content, content

    <h4 style=”text-align: center;”></h4>

    [/wppb-restrict]


    When I test this by logging into a role that shouldn’t be able to view that content, I am seeing the message ‘This content is restricted for your user role.’. I have tried to remove this in Settings > Content Restriction by erasing this default, but when I save the setting it reappears and will not accept it. Is there a way to remove the message?

    I have been unsuccessful with CSS for all these instances, and would love a way for it to never show. I have tried adding to the shortcode:

    [….message=””]

    in hopes this would result in no message, but it still displays.

    I do not want any users to know there is something they cannot see.

    Any assistance with this would be tremendous – thank you!!

    ** To see site, login with following credential

    • Removed by moderator
      If you scroll down a bit you can see the messages appearing where I have restricted some content.
    • This topic was modified 2 years, 6 months ago by Yui. Reason: login credentials removed

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Support Moderator

    (@moderator)

    @jbw872634 please don’t post any logins and passwords, even test ones

    Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @jbw872634,

    An option to change that specific text would be to type that text directly in the shortcode (inside the message=” ” argument). An example would be:

    [wppb-restrict user_roles="editor" message="Custom message here"]

    Or if you do not wish to show any message, then in this case you will just need to have an empty space in the message=” ” argument (press once on the spacebar). For example:

    [wppb-restrict user_roles="editor" message=" "]

    Note: Please be careful with the quotation marks that you’re using since from your message those do not appear to be the normal ones. I’ve also tested this on my WP Instance and it seems that this works correctly (the message is changed in the front end). Please also check the example from here.

    Note 2: Please also make sure you have the latest version of the Profile Builder plugin (that being version 3.10.6).

    Best regards,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to remove content restriction message’ is closed to new replies.