[{"data":1,"prerenderedAt":11},["ShallowReactive",2],{"$fv9ze49z9lcvt":3},{"slug":4,"title":5,"description":6,"published":7,"updated":8,"thumb":9,"html":10},"how-to-add-custom-css-or-script-on-all-pages-but-homepage-in-wordpress","How to Add Custom CSS or Script On All Pages But Homepage in WordPress","If you want to add custom css on all the pages of a WordPress website except the homepage, you can do it via something like this. Put this code in the...","2015-07-02","2016-06-17",null,"\u003Cp>If you want to add custom css on all the pages of a WordPress website except the homepage, you can do it via something like this. Put this code in the header.php of your theme file\u003C\u002Fp>\n\u003Cp>\u003Ccode>\u003C?php if ( ! is_front_page() ) {?>\u003C\u002Fp>\n\u003Cstyle>\n      .yourcsslcass{\n      }\n   \u003C\u002Fstyle>\n\u003Cp>\u003C?php } ?>\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cp>In place of .yourcssclass you need to use your own css classes. This setting will work if you have a page set as front page from the reading settings.\u003C\u002Fp>\n\u003Cp>In order to use custom css in some themes where homepage is not controlled by a page but from widget or theme settings, you can use \u003C\u002Fp>\n\u003Cp>\u003Ccode>\u003C?php is_home(); ?>\u003C\u002Fcode>\u003C\u002Fp>",1793901039234]