Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WP js_composer.min.css not applying for single post

I have an issue with my footer in single-post pages. My footer should look like


this

But when I open single post page it turns out to look like


this.

When I inspected both footers I found out that any other page the css rules apply from js_composer.min.css but on single-post page you do not see it there.

Is there any way to add that to single-post?

like image 671
StratyCom Avatar asked Jul 17 '26 16:07

StratyCom


1 Answers

I had the same problem but with Woocommerce pages.

This should work for you.

function js_composer_front_load() {
    if(is_single()) {
        wp_enqueue_style('js_composer_front');
    }
}

add_action('wp_enqueue_scripts', 'js_composer_front_load');
like image 106
Kim Jansson Avatar answered Jul 20 '26 06:07

Kim Jansson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!