Last active
March 29, 2017 12:29
-
-
Save bigdigital/16d34f5f27fcc6e979fd681bda3bbda0 to your computer and use it in GitHub Desktop.
Add custom less file to the theme The7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function add_my_dynamic_stylesheets_action( $dynamic_stylesheets ) { | |
return array_merge( | |
$dynamic_stylesheets, | |
array( | |
'bb-press.less' => array( | |
//for child theme functions.php | |
'path' => PRESSCORE_CHILD_THEME_DIR . '/css/myless.less', | |
'src' => PRESSCORE_CHILD_THEME_URI . '/css/myless.less', | |
//for main theme functions.php | |
//'path' => PRESSCORE_THEME_DIR . '/css/myless.less', | |
//'src' => PRESSCORE_THEME_URI . '/css/myless.less', | |
'fallback_src' => '', | |
'deps' => array(), | |
'ver' => wp_get_theme()->get( 'Version' ), | |
'media' => 'all' | |
) | |
) | |
); | |
} | |
add_action( 'presscore_get_dynamic_stylesheets_list', 'add_my_dynamic_stylesheets_action' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment