Created
October 24, 2019 11:29
-
-
Save Balachandark/3bfd32e6fa4a902a69653c6e944b2a7b to your computer and use it in GitHub Desktop.
Add Elementor CSS file in Head
This file contains 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', function() { | |
if ( ! class_exists( 'Elementor\Core\Files\CSS\Post' ) ) { | |
return; | |
} | |
// Add your header page id here. | |
$header_page_id = 3499; | |
$css_file = new Elementor\Core\Files\CSS\Post( $header_page_id ); | |
$css_file->enqueue(); | |
}, 500 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment