• Resolved tolito10

    (@tolito10)


    Hi,

    i want to know if is possible hide content that not be a shortcode or text.
    What I want to do is through elementor:

    -shortcode element [lifterlms_hide_content id=”1234″]
    -video element or anything element.
    -shortcode element [/lifterlms_hide_content]

    the first shortcode is good but the [/lifterlms_hide_content] not work as shortcode if not a text:

    SHORTCODE-VIDEO-SHORTCODE

    not is possible use the HIDE CONTENT in TWO shortcodes? separately

    instead of:

    -SHORTCODE: [lifterlms_hide_content id=”1234″] VIDEO OF VIMEO [/lifterlms_hide_content]

    TWO Shortodes:

    -SHORTCODE: [lifterlms_hide_content id=”1234″]
    -VIDEO OF VIMEO
    -SHORTCODE 2: [/lifterlms_hide_content]

    Thanks and regards.

    DAVID

    • This topic was modified 8 years, 11 months ago by tolito10.
    • This topic was modified 8 years, 11 months ago by tolito10.
Viewing 5 replies - 1 through 5 (of 5 total)
  • @tolito10,

    I’m having a hard time following your issue here. This isn’t two separate shortcodes it’s one shortcode that requires a closing tag to be added to determine where the hidden content ends.

    It’s possible to nest shortcodes within shortcodes and it should be possible to nest a video within the shortcode as well but I can’t guarantee that depending on what your theme and plugin stack looks like and how the embed is working and the other shortcodes.

    Help me out with a bit more concerete information here, there’s a few pieces of info from the STICKY that help me out a bit. Also, if you can give me a link to a page where you’re using this shortcode but it’s not working that would be helpful as well

    Thanks,

    Thread Starter tolito10

    (@tolito10)

    Hi Thomas,

    ok, I understand that can not put in two shortcodes separately, it always has to be in a single shortcode. Now the problem I have is that I do not know how to write the shortcode so that it shows a text to visitors that is not registered, where and how i put that text in the shortcode?:

    [lifterlms_hide_content id=”1234″]

    This will only display to members of membership 1234

    [/lifterlms_hide_content]

    I do not know how to program, Thansk and regards.

    Thread Starter tolito10

    (@tolito10)

    @thomasplevy I think you forgot to see my reply last night 😉

    @tolito10,

    You can display a message when the user isn’t enrolled in the course/membership (but not rich HTML due to the way shortcode parameters work) by using the “message” parameter as documented on our shortcode docs page.

    Here’s an example:

    
    [lifterlms_hide_content id="1234" message="Non members will see this message"]
    This will only display to members of membership 1234
    [/lifterlms_hide_content]
    

    Hope that helps,

    Thread Starter tolito10

    (@tolito10)

    PERFECT!!!!! You should put that on the page for people who do not know how to program.

    Thanks!!!!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Hide content shortcode’ is closed to new replies.