-
AuthorPosts
-
October 10, 2018 at 1:52 am #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,
JasonOctober 10, 2018 at 5:52 am #1019772Hey 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,
MikeOctober 11, 2018 at 1:32 am #1020106Hi 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,
JasonOctober 11, 2018 at 1:47 am #1020107Hi Mike,
The second option did the trick – thank you :)
JasonOctober 11, 2018 at 1:54 am #1020108 -
AuthorPosts
- You must be logged in to reply to this topic.
