• Resolved piotroxy

    (@piotroxy)


    Hi,
    Sometimes, when I enter the page for the first time, the CSS code appears (screen). When I refresh the page it’s ok.
    How to solve it?

    I am using the Neve theme with Elementor

    Category slider is placed in the header using a shortcode.

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @piotroxy,

    Sorry for the inconvenience. Hope you are doing great today!

    If possible please share the page link and share a screenshot of the place where you inserted the shortcode. So that we can check by inspecting the page link.

    We will appreciate your cooperation.

    Have a great day!

    Thread Starter piotroxy

    (@piotroxy)

    Hi, thanks for your reply.

    Link: https://ekoherba.oxy.pl/kategoria-produktu/mieszanki-ziolowe-i-ekstrakty/
    Or any other page you visit for the first time.

    Screen

    Regards

    • This reply was modified 1 year, 9 months ago by piotroxy.
    Thread Starter piotroxy

    (@piotroxy)

    This error always appears on the shop’s subpage: https://ekoherba.oxy.pl/sklep/

    Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @piotroxy,

    Sorry for the inconvenience.

    We have reviewed the issue and figured out it. To fix the issue, please add the following code using a code snippet. You can also insert the code at the bottom of the functions.php file of your current theme.

    function sp_kses_allowed_html_modified( $allowed_tags, $context ) {
        if ( 'post' == $context ) {
            $allowed_tags['style'] = array(
                'type' => array(),
            );
        }
        return $allowed_tags;
    }
    add_filter( 'wp_kses_allowed_html', 'sp_kses_allowed_html_modified', 10, 2 );

    Please keep a backup of the website before applying the code. Hopefully, the issue will be fixed.

    Have a great day!

    Thread Starter piotroxy

    (@piotroxy)

    Thank for the answer!
    I see this code fix it, thanks.

    Regards

    Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @piotroxy,

    Great to know that it worked. If you are satisfied with the support we will appreciate it if you share your experience here.

    Your review will motivate us and inspire us in every aspects.

    Have a great day!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CSS code on the frontend’ is closed to new replies.