Multiple custom skins not working

pauljlawrence1's Avatar


09 Aug, 2019 03:11 AM

Hi, Dmitri.

I've followed your instructions for setting up multiple custom skins in my functions.php but only the first skin (hero-slider.css) is showing up when I view the page source... What could I be doing wrong?

add_filter('new_royalslider_skins', 'new_royalslider_add_custom_skin', 10, 2);
function new_royalslider_add_custom_skin($skins) {
      $skins['heroSlider'] = array(
           'label' => 'Hero Slider',
           'path' => get_stylesheet_directory_uri() . '/template-parts/royalslider-custom/css/hero-slider.css'
      $skins['eventSlider'] = array(
           'label' => 'Event Slider',
           'path' => get_stylesheet_directory_uri() . '/template-parts/royalslider-custom/css/event-slider.css'
      return $skins;


  1. pauljlawrence1 closed this discussion on 09 Aug, 2019 03:16 AM.

  2. pauljlawrence1 re-opened this discussion on 09 Aug, 2019 03:17 AM

  3. 1 Posted by pauljlawrence1 on 09 Aug, 2019 03:17 AM

    pauljlawrence1's Avatar

    Forgot to add skin in WP backend. Please disregard.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac