How to Write Custom CSS Specifically for Certain Page Templates in WordPress

by | Apr 10, 2015

If you want to add custom css for a specific page template, you can use is page template function in the header in if condition and write the corresponding css as the sample below.


.footer_top .textwidget{display:none !important;}

';
}
?>

About Mohammad Shoeb
Hi, I'm Shoeb. I've been fortunate to work with WordPress for over a decade and I'm continuously learning from this journey. Alongside some wonderful people, I help run Elicus in Jaipur. Our aim is to make WordPress tools that are simple and helpful.