Title: Shortcode breaking Divi Theme
Last modified: June 14, 2020

---

# Shortcode breaking Divi Theme

 *  Resolved [ValterTF](https://wordpress.org/support/users/valtertf/)
 * (@valtertf)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/shortcode-breaking-divi-theme/)
 * Hello, I’m trying to restrict access to specific project categories, allowing
   only admin and specific users to see them. Each user role (each user will have
   his/her own user role) will have access to a single project category named after
   him/her.
    The Divi Theme uses modules to build layouts, so there is no place 
   for short codes. I want to create a single page with many portfolio modules, 
   one for each project category, and restrict their access only to the specific
   user role. Each user will only see a specific blog module.
 * I have found a plugin that allows me to call pre-made Divi custom modules with
   content using shortcodes. So I’m placing that shortcode between your plugin shortcode.
 * For example: [restrict level=”!john”][showmodule id=”384″][/restrict] – for some
   reason when using [showmodule id=”384″] without restrictions it shows exactly
   as designed, but then when adding the restrict shortcode it breaks/overrides 
   CSS, damaging the layout. Any ideas? Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/shortcode-breaking-divi-theme/#post-13066662)
 * Thank you for reporting this.
 * Can you show me a screenshot of how it looks? Or preferably a link to a page,
   so I can inspect the HTML?

Viewing 1 replies (of 1 total)

The topic ‘Shortcode breaking Divi Theme’ is closed to new replies.

 * ![](https://ps.w.org/restrict-user-access/assets/icon-256x256.png?rev=1815922)
 * [Restrict User Access - Ultimate Membership & Content Protection](https://wordpress.org/plugins/restrict-user-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-user-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-user-access/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-user-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-user-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-user-access/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [divi](https://wordpress.org/support/topic-tag/divi/)
 * [elegant themes](https://wordpress.org/support/topic-tag/elegant-themes/)
 * [module](https://wordpress.org/support/topic-tag/module/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/shortcode-breaking-divi-theme/#post-13066662)
 * Status: resolved