Title: problem with restrict content shortcode
Last modified: March 26, 2020

---

# problem with restrict content shortcode

 *  [catalano](https://wordpress.org/support/users/catalano/)
 * (@catalano)
 * [6 years ago](https://wordpress.org/support/topic/problem-with-restrict-content-shortcode/)
 * Hello,
 * I’m trying to use the restrict content shortcode ([um_loggedin show_lock=no])
   in a content item within a page. The site is using the Avada theme and uses several
   containers on the page. I’m trying to restrict one particular container to logged
   in users only. I’ve used Avada’s code block content items to insert the opening
   and closing shortcodes around the content item in question. You can it here: 
   [http://c2-it.com/pics/SafariScreenSnapz013.jpg](http://c2-it.com/pics/SafariScreenSnapz013.jpg).
   Unfortunately, it doesn’t work. The content is visible and the closing shortcode
   is actually displayed on the page. I know this might be more of an Avada question,
   but since its a popular theme I thought it might be known.
 * Thank You,
    Chris

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

 *  Plugin Support [Towhid](https://wordpress.org/support/users/cryptex_vinci/)
 * (@cryptex_vinci)
 * [6 years ago](https://wordpress.org/support/topic/problem-with-restrict-content-shortcode/#post-12590007)
 * Hi
 * You have to insert the shortcode like this:
 * `[um_loggedin]The text you want only loogedin users to see.[/um_loggedin]`
 * Thanks
 *  Thread Starter [catalano](https://wordpress.org/support/users/catalano/)
 * (@catalano)
 * [6 years ago](https://wordpress.org/support/topic/problem-with-restrict-content-shortcode/#post-12591499)
 * Unfortunately it can’t be done that way because the content elements are Avada
   widgets. There’s no way to insert the shortcodes into the widget block. That’s
   why I added a specific code block before and after the content items I wanted
   hidden. But obviously that’s not working.

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

The topic ‘problem with restrict content shortcode’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [catalano](https://wordpress.org/support/users/catalano/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/problem-with-restrict-content-shortcode/#post-12591499)
 * Status: not resolved