Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DalavanCloud/76cdf0255dcb23efac0476071858c62e to your computer and use it in GitHub Desktop.
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.
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