Forked from cobaltapps/Enqueue an external Custom Stylesheet to Dynamik Website Builder
Created
March 7, 2019 02:31
-
-
Save DalavanCloud/76cdf0255dcb23efac0476071858c62e to your computer and use it in GitHub Desktop.
Use this code if you'd like to use an external Custom Stylesheet in Dynamik Website Builder. Note that this code assumes you have created a my-custom.css file and uploaded it to your /wp-content/uploads/dynamik-gen/theme/ directory.
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
add_action( 'wp_enqueue_scripts', 'custom_add_stylesheet' ); | |
/** | |
* Enqueue an external Custom Stylesheet to Dynamik Website Builder | |
*/ | |
function custom_add_stylesheet() | |
{ | |
wp_enqueue_style( 'my-custom', dynamik_get_stylesheet_location( 'url' ) . 'my-custom.css', false, filemtime( dynamik_get_stylesheet_location( 'path' ) . 'my-custom.css' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment