Title: CSS code on the frontend
Last modified: June 9, 2023

---

# CSS code on the frontend

 *  Resolved [piotroxy](https://wordpress.org/support/users/piotroxy/)
 * (@piotroxy)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/css-code-on-the-frontend/)
 * Hi,
   Sometimes, when I enter the page for the first time, the CSS code appears(
   [screen](https://prnt.sc/4s6MKc-bcpGx)). 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](https://wordpress.org/support/users/pulak00/)
 * (@pulak00)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/css-code-on-the-frontend/#post-16820580)
 * Hi [@piotroxy](https://wordpress.org/support/users/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](https://wordpress.org/support/users/piotroxy/)
 * (@piotroxy)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/css-code-on-the-frontend/#post-16829313)
 * Hi, thanks for your reply.
 * Link: [http://ekoherba.oxy.pl/kategoria-produktu/mieszanki-ziolowe-i-ekstrakty/](http://ekoherba.oxy.pl/kategoria-produktu/mieszanki-ziolowe-i-ekstrakty/)
   
   Or any other page you visit for the first time.
 * [Screen](https://prnt.sc/bHL_6_hGR8FM)
 * Regards
    -  This reply was modified 2 years, 11 months ago by [piotroxy](https://wordpress.org/support/users/piotroxy/).
 *  Thread Starter [piotroxy](https://wordpress.org/support/users/piotroxy/)
 * (@piotroxy)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/css-code-on-the-frontend/#post-16836344)
 * This error always appears on the shop’s subpage: [http://ekoherba.oxy.pl/sklep/](http://ekoherba.oxy.pl/sklep/)
 *  Plugin Support [Pulak Ahmed](https://wordpress.org/support/users/pulak00/)
 * (@pulak00)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/css-code-on-the-frontend/#post-16836446)
 * Hi [@piotroxy](https://wordpress.org/support/users/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.
 *     ```wp-block-code
       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](https://wordpress.org/support/users/piotroxy/)
 * (@piotroxy)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/css-code-on-the-frontend/#post-16836470)
 * Thank for the answer!
   I see this code fix it, thanks.
 * Regards
 *  Plugin Support [Pulak Ahmed](https://wordpress.org/support/users/pulak00/)
 * (@pulak00)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/css-code-on-the-frontend/#post-16836483)
 * Hi [@piotroxy](https://wordpress.org/support/users/piotroxy/),
 * Great to know that it worked. If you are satisfied with the support we will appreciate
   it if you share your experience [here](https://wordpress.org/support/plugin/woo-category-slider-grid/reviews/).
 * 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.

 * ![](https://ps.w.org/woo-category-slider-grid/assets/icon-256x256.png?rev=3506548)
 * [Product Category Slider & Grid for WooCommerce – WooCategory](https://wordpress.org/plugins/woo-category-slider-grid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-category-slider-grid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-category-slider-grid/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-category-slider-grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-category-slider-grid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-category-slider-grid/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Pulak Ahmed](https://wordpress.org/support/users/pulak00/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/css-code-on-the-frontend/#post-16836483)
 * Status: resolved