Home>Support>Can I use Ultimate Member shortcodes with So widgets?

Can I use Ultimate Member shortcodes with So widgets?

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.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 7 months ago Andrew Misplon
    Hi, I Work Here

    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?

  2. 4 years, 6 months ago baponline

    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.

  3. 4 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    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.

  4. 4 years, 6 months ago baponline

    Thank you for your help.

  5. 4 years, 6 months ago Andrew Misplon
    Hi, I Work Here

    For sure :) Cheers for now.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More