• Resolved dannci

    (@dannci)


    Hello there,

    I can see a plain CSS code when SporsPress shortcode is used on a page:

    https://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_

    Thank you

    Daniel

    • This topic was modified 1 year, 4 months ago by dannci.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @dannci ,

    Can you specify which templates show this “error”? I just checked with “Rookie” and “TwentyNineteen” 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

    (@dannci)

    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: https://beatheme.com/demo/–1dev/test-2/

    I assume that it is related to this part of the code: 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

    (@savvasha)

    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.