Support » Plugin: Restrict Content » Restrict content of tabs

  • Hi,

    I have a block of tabs and I want to show it just in case the user has been logged, how can I do it?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author NoseGraze

    (@nosegraze)

    When you say “a block of tabs” are you referring to a Gutenberg block?

    And you want to restrict these tabs to users who are logged in or logged out?

    blumbreras

    (@blumbreras)

    Hi,

    Not, in my case I create a row with visual composer and that is what I want to hide when users are not logged and show when they are logged.

    Thanks!

    Plugin Author NoseGraze

    (@nosegraze)

    Unfortunately Restrict Content does not integrate with Visual Composer to allow you to show/hide certain rows. You can use the meta box to restrict access to the entire post/page, or you can use the [restrict] shortcode to hide portions of content. But we do not have a way to control the visibility of a Visual Composer element.

    What do you mean by “meta box”?
    In visual composer I need to restrict page to my created user role, i tried to insert the element BLOCK CODE before and after with [restrict] and [/restrict] code but it doesn’t work.

    Thanks!

    • This reply was modified 1 month, 2 weeks ago by algores.
    Plugin Author NoseGraze

    (@nosegraze)

    Visual Composer may not allow you to split up shortcodes — you’ll have to ask them to confirm. If that’s the case, that means you cannot have the [restrict] opening shortcode in one block, followed by a different block, followed by another block with the closing [/restrict] shortcode. Instead, [restrict] and [/restrict] have to be within the same code block.

    You will have to ask Visual Composer to confirm if that’s the case. This would be something they’d have to change on their end (specifically supporting “opening and closing shortcode tags in separate blocks”).

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