Hey guys, I’m using a membership plugin (iMember360 > docs.imember360.com, that affords me the ability to use conditional shortcodes. For instance:
[i4w_is_logged_in]
Show this content if the user is logged in.
[/i4w_is_logged_in]
[i4w_not_logged_in]
Show this content if they are not logged in.
[/i4w_not_logged_in]
The challenge I’m having is that when I’m logged in to my site as an admin, and editing in PageBuilder, the shortcodes will render, and then I can no longer see everything. Since i’m logged in as an admin, the is_not_logged_in shortcode and it’s content are not visible. This creates the problem for me that I cannot access it, if I want to edit it as admin.
Any work-around you can suggest?
Everything else works flawlessly between iMember360 and BeaverBuilder
Can you tell me where you are inserting those shortcodes? I launched the builder but am not seeing anywhere that I can add BB content on that lesson. I created a new lesson and can edit that without any issues.
It looks like the issue is that you’re adding the opening shortcode in one module and the closing shortcode in another. Unfortunately, that won’t work because each module has opening/closing tags that are breaking when their accompanying tag is being hidden by the shortcode.
Additionally, the “not logged in” shortcode will render when you are logged in, so it’s hiding the necessary markup for the builder interface to work and allow you to edit modules.
Have you tried putting both the opening/closing shortcodes in a single text editor module? I know that doesn’t allow you to show/hide modules with the shortcodes, but you could put your course content within that to show/hide it there.