Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1019705

    hi there,
    i’m using this plugin to handle content restriction on a site, this basically uses short-codes to either show/hide content (in my case).
    [not_logged_in]
    [restrict]
    etc, which is all well & good – when using text blocks – however i have a notification block i’d like to handle the same way.
    is there any potential way to use a block like this in code block – along with the short code?
    i seem to remember there was a way to see like the source of the various blocks, so that you could extend functionality – but anyway, happy to take your advice on this.
    it would be nice to be able to hide the notification block after the user is logged in.
    cheers,
    Jason

    #1019772

    Hey Jason,
    Is your notification block a advanced layout builder element? Perhaps you can use a code block element before and after your notification block and enter the starting shortcode in one and the ending shortcode in the other?
    Another option is to Enable the Avia Layout Builder Debuggerand enter your shortcodes directly in with the theme shortcodes. Please test this first, as I’m not sure if this will cause a conflict.

    Best regards,
    Mike

    #1020106

    Hi Mike,
    Thanks for the reply, the first option didn’t work, so I’ll give the second one a go & report back.
    The first option ended up displaying the closing shortcode on the page – [/not_logged_in]
    Cheers,
    Jason

    #1020107

    Hi Mike,
    The second option did the trick – thank you :)
    Jason

    #1020108

    Hi,
    Thanks for the feedback, I look forward to hearing your results,
    Perhaps if the second option doesn’t help, if you could create a test page with an element wrapped in the shortcode, that we can test with, it will help us look further into this.

    Best regards,
    Mike

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