Hi,
I’m not sure if this is a question for SO or for Ultimate Member (UM) plugin.
I have a SO Builder page with multiple rows. One row is a Layout Builder widget.
I would like to make the entire Layout Builder widget row viewable only to logged in users using the UM shortcode.
(ie, [um_loggedin]….[/um_loggedin])
Is there a way to do this?
The Layout Builder Widget itself contains 3 rows.
Row 1 is SO Editor. I can successfully use UM shortcode to limit text visibility.
Same for Row 2.
But Row 2 is SO Image Widget and SO Editor.
Couldn’t figure out how to use UM shortcode around either a) all the rows in the widget or b) around the image.
Should I be using some other types of SO layouts or widgets to accomplish my goal?
Hopefully this question makes sense.
Thanks in advance.
Hi Baponline
Thanks for posting.
I’m not aware of a method that would allow rows or widgets to be hidden using the mentioned shortcode. You could insert the image into a SO Editor widget (Add Media button) instead of using the SO Image widget. Would that perhaps resolve the issue in this location?
Thank you for the suggestion.
I ended up creating a content block (using a plugin) and recreating my SO Layout Builder widget in it.
On my page, I added a new SO Editor row and entered the code for the content block and surrounded it with the UM shortcodes.
Worked perfectly!
Not sure why I didn’t think of that sooner….but something in your response triggered that thought, so thank you.
I was also trying to figure out how to make certain rows within a Feature widget only visible to logged in users. I think I may try something similar using content blocks and using separate Feature widgets.
Super, glad to hear you’re making progress.
Without intermediate level custom development, I don’t know of a way to insert a shortcode within the features of a Features widget. Splitting the widget up would be the easiest.
Thank you for your help.
For sure :) Cheers for now.