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
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
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
Hi Mike,
The second option did the trick – thank you :)
Jason