Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: enqueue css in sub folder

Discussion in 'Misc WordPress Requests' started by Xenos (xkon) Konstantinos, Jan 30, 2018.

  1. Xenos (xkon) Konstantinos


    Reply To: enqueue css in sub folder, by Xenos (xkon) Konstantinos


    The only .css that needs to be in the root folder is style.css that has all the information needed for the child theme as well.

    Extra css can be enqueued from sub-folders as well you just append the folder when you queue the css for example:

    wp_enqueue_style('child-extra-css', get_stylesheet_directory_uri() .'/SUBFOLDER/extra-style.css', array());

    You just replace subfolder and extra-style.css according to your needs.

    Reply To: enqueue css in sub folder

Share This Page

Monarch Social Sharing Plugin