Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Define Layout Path for CSS Skins

Home / Forums / Virtue Theme / Define Layout Path for CSS Skins

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
March 18, 2016 at 1:30 pm

Hi Hannah & Ben,

I need a little help, please. I’m working locally so I don’t have an URL I can share but this is what I’m attempting to do:

Under the Basic Styling options in the Theme Options, there is a dropdown for selecting the theme skin (blush.css, default.css, redhot.css, etc). I want to add my own skin to this dropdown so I copied the file setup into my child theme (/assets/skins/{css files}). I then put my own css file inside the skins folder but it doesn’t show up. To ensure the css file works, I then copied it into the parent them skins folder and it does show up.

I took a look at the options.php under the themeoptions folder and noticed this line:
define( 'LAYOUT_PATH', get_template_directory() . '/assets/css/skins/' );

Since the files I want to use are in my child theme, I thought this line would need to be changed to:
define( 'LAYOUT_PATH', get_stylesheet_directory() . '/assets/css/skins/' );

This did not work. I also tried get_stylesheet_directory_uri() without any luck. If I keep your path and define it in my child theme functions, it works fine. But if I change it to the stylesheet path, it again stops working (since I don’t want to edit the parent theme, I know I need to define it in my child theme).

When I look at the Basic Styling options it shows “No items of this type were found.” Any hints on a good way to fix this? I’d really rather not drop my CSS files into the parent theme.

Thank you!

  • The forum ‘Virtue Theme’ is closed to new topics and replies.