Thread Starter
asom77
(@mosa77)
I found the filter which worked but I had to add it to main theme function.php
If I add under child theme it shows error.
function mytheme_body_class( $classes ) {
if( is_page_template('homepage.php') )
$classes[] = 'custom-layout';
return $classes;
}
add_filter( 'body_class', 'mytheme_body_class' );
[please remember to mark all posted code – see http://codex.wordpress.org/Forum_Welcome#Posting_Code ]
Thread Starter
asom77
(@mosa77)
Thanks
How to add filter in functions.php to apply custom css to particular template?
I don’t find Custom CSS section in dashboard.