Title: Cannot override CSS style
Last modified: July 20, 2017

---

# Cannot override CSS style

 *  Resolved [jleung1994](https://wordpress.org/support/users/jleung1994/)
 * (@jleung1994)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/)
 * I tried to override the arrow color with the following code, but the style was
   not in the <head> or <header> section.
    I do not want to manually set the CSS
   for every slider in the Admin.
 *     ```
       function my_inline_styles_method()
       {
       if (is_singular('gallery')) {
       wp_enqueue_style('custom-inline-style', get_template_directory_uri() . '/style.css');
   
       $custom_css = ".sp-previous-arrow::after, .sp-previous-arrow::before,
       .sp-next-arrow::after, .sp-next-arrow::before {
       background: rgba(155,155,155,0.8)!important;
       }";
       wp_add_inline_style('custom-inline-style', $custom_css);
       }
   
       }
       add_action('wp_enqueue_scripts', 'my_inline_styles_method', 999);
       ```
   

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

 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9338891)
 * Please share us your slider URL and color you want to apply on Arrows.
 * We will send the custom CSS code for you.
 * Thanks
 *  [hellheim](https://wordpress.org/support/users/hellheim/)
 * (@hellheim)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9339058)
 * [@jleung1994](https://wordpress.org/support/users/jleung1994/) – do not forget
   to sanitize the output.
 *  Thread Starter [jleung1994](https://wordpress.org/support/users/jleung1994/)
 * (@jleung1994)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9340513)
 * I would like to test with rgba(155,155,155,0.8)
    I prefer not to share the url.
   Could you use “example.com”?
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9342012)
 * Use your CSS code into Custom CSS setting of the plugin. Hope this will help.
 *  Thread Starter [jleung1994](https://wordpress.org/support/users/jleung1994/)
 * (@jleung1994)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9343170)
 * I do not want to manually add css to every slider.
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9352581)
 * Then, you can add CSS directly to this file of plugin “uris-layout.php”.
 * <style> tag at line number 95 of the file.
    -  This reply was modified 8 years, 9 months ago by [Weblizar - WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/).
 *  Thread Starter [jleung1994](https://wordpress.org/support/users/jleung1994/)
 * (@jleung1994)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9353921)
 * thanks a lot
    it would be nice to have a custom css section in admin for all 
   sliders instead of one each slider
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9355958)
 * This is a considerable suggestion. We try to add near future. 🙂 (also share 
   your [feedback](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/reviews/))

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

The topic ‘Cannot override CSS style’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-responsive-image-slider/assets/icon-128x128.gif?
   rev=2305926)
 * [Ultimate Responsive Image Slider](https://wordpress.org/plugins/ultimate-responsive-image-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-responsive-image-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/reviews/)

## Tags

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

 * 8 replies
 * 3 participants
 * Last reply from: [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/cannot-override-css-style/#post-9355958)
 * Status: resolved