Please any help !!
Thanks.
I need to write something like that for the css ?
function themeslug_enqueue_style() {
if ( get_sub_field(‘slider’) ) {
wp_enqueue_style( ‘parent-stylesheet’, trailingslashit( get_template_directory_uri() ) . ‘style.css’, false );
}
}
add_action( ‘wp_enqueue_scripts’, ‘themeslug_enqueue_style’ );
Hi can you help me with this HOOK.
I want to load specific JS and CSS if there is a specific flexible content on my page and i don’t understand how to use it.
Thanks.
Simon.