Content show/hide using Memberpress shortcodes

Hi,

Beaver Builder is being too awesome–it’s rendering my conditional Memberpress shortcodes [mepr-hide if=“loggedin”] <p>Content</p> [/mepr-hide] while I edit the page, which hides some content blocks from me and keeps me from being able to edit them.

This wasn’t an issue before 1.7 because I could temporarily change to something like [zmepr-hide … ] and then the full-page refresh would show me the hidden content blocks. Now with partial refresh, this doesn’t work anymore. The content stays hidden.

Is there a way to get shortcodes on the page without them being rendered in realtime in the Beaver Builder editor?

Thanks!

I should clarify, the opening shortcode, the content row, and the closing shortcode are all in their own separate rows… this is the reason for the partial refresh conflict.

Hi Robert,

Just to clarify, are you saying that you’re placing the opening shortcode in it’s row, the same for the content and finally the closing shortcode?

Or are you saying that you’re placing your shortcodes and content in one module and partial refresh is forcing them into individual rows?

Thanks,
Danny

Hi Danny,

Yes, I’m putting them in separate rows on purpose–so I can hide/show a nice content row.

Thanks,
Robert

Hi Robert,

Which module are you adding the shortcodes too? Have you tried the HTML module and if not, can you try and see if the issue persists?

Thanks,
Danny

Hi Danny,

HTML module has the same behavior since it also renders the shortcodes during page building. (I was using text module first.)

I just noticed I can get around this problem with my old trick of adding a character to break the opening shortcode, and then doing a browser refresh. This redraws all the modules and I can see my hidden content. I don’t know if that’s how you intend people to use Beaver Builder, to be using the browser refresh as a hard redraw. As a user, I would be scared of losing edits using browser refresh a lot.

It seems it would be really handy in the text and HTML modules to have a checkbox that disables shortcode rendering during page building–this would be a blanket fix to all sorts of possible shortcode shenanigans.

Hi Robert,

I will add this to our bug tracker as an feature enhancement and let our developers review it. I can’t say whether this will be included in the future, but I will be sure to bring it to our developers attention for you.

Thanks,
Danny

Oh cool… I just posted in uservoice too, maybe it’s superfluous now: https://wpbeaverbuilder.uservoice.com/forums/270594-general/suggestions/11536536-toggle-shortcode-and-html-parsing-on-text-and-html

<3 Beaver Builder <3

Thanks,
Robert

Hi Robert,

As you have posted on UserVoice, I’ll leave reporting, as our developers check UserVoice daily. So it will be seen by them.

Also, for the purpose of house keeping, I will mark this topic as resolved too. However, I have bookmarked your topic and will mention it to our developers for you :wink:

Thanks,
Danny