Title: CSS code visible when shortcode is used
Last modified: July 6, 2023

---

# CSS code visible when shortcode is used

 *  Resolved [dannci](https://wordpress.org/support/users/dannci/)
 * (@dannci)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/css-code-visible-when-shortcode-is-used/)
 * Hello there,
 * I can see a plain CSS code when SporsPress shortcode is used on a page:
 * [http://beatheme.com/demo/–1dev/test/](http://beatheme.com/demo/--1dev/test/)
 * Some themes display the code some don’t. Can you advise or point me to what can
   cause this issue?
 * Notes:
    1. the code is always visible, when the wp_debug is enabled or disabled.
    2. the code is inside .sportspress class when [player_gallery] shortcode is used:
       [https://prnt.sc/G7ZEPqAEktj_](https://prnt.sc/G7ZEPqAEktj_)
 * Thank you
 * Daniel
    -  This topic was modified 2 years, 10 months ago by [dannci](https://wordpress.org/support/users/dannci/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-code-visible-when-shortcode-is-used%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/css-code-visible-when-shortcode-is-used/#post-16875608)
 * Hi [@dannci](https://wordpress.org/support/users/dannci/) ,
 * Can you specify which templates show this “error”? I just checked with “[Rookie](https://snipboard.io/CNYpTZ.jpg)”
   and “[TwentyNineteen](https://snipboard.io/yjTUxY.jpg)” and there is no error.
   Some themes, especially the premium ones that declare support to SportsPress,
   override sportspress template files, which maybe outdated.
 * Thanks,
   Savvas
 *  Thread Starter [dannci](https://wordpress.org/support/users/dannci/)
 * (@dannci)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/css-code-visible-when-shortcode-is-used/#post-16876977)
 * Hello,
 * it is not a theme that declares support for SportPress. I’m just helping someone.
 * The point is that just the `[player_gallery]` shortcode shows that CSS code and
   it is a plain, easy theme that uses standard `the_content();` function. It makes
   no sense to me.
 * Here are a few un-designed examples of shortcodes that are fine: [http://beatheme.com/demo/–1dev/test-2/](http://beatheme.com/demo/–1dev/test-2/)
 * I assume that it is related to this part of the code: [https://prnt.sc/swxLFz3rOJre](https://prnt.sc/swxLFz3rOJre)
   but I have really no clue.
 * ________
 * EDIT!
 * I’ve found what is causing the issue. The theme has to support html5 markup for
   a gallery:
 * `add_theme_support( 'html5', array('gallery') );`
 * Thank you
 * Daniel
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/css-code-visible-when-shortcode-is-used/#post-16884141)
 * I am glad you sorted it out finally and for sharing the solution! 🙂
 * Thanks,
   Savvas

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

The topic ‘CSS code visible when shortcode is used’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

## Tags

 * [code visible](https://wordpress.org/support/topic-tag/code-visible/)
 * [css code](https://wordpress.org/support/topic-tag/css-code/)

 * 3 replies
 * 2 participants
 * Last reply from: [Savvas](https://wordpress.org/support/users/savvasha/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/css-code-visible-when-shortcode-is-used/#post-16884141)
 * Status: resolved