Theme Author
Tajam
(@tajam)
Did you mean to disable boxed layout? If yes, you need to remove the boxed class from the body tag. Please add this code in your child theme’s functions.php file:
function yourtheme_remove_boxed_class( $classes ) {
$classes = array_diff( $classes, array( 'boxed' ) );
return $classes;
}
add_action( 'body_class', 'yourtheme_remove_boxed_class' );
Thanks for the swift response. Does it matter what line I put in on, because it gives me an error:
syntax error, unexpected ‘return’ (T_RETURN)
Theme Author
Tajam
(@tajam)
You can put it on any line, but make sure it’s outside of other functions.
Are you sure you have copied the code correctly? From the error message, I think you missed some code before the return statement.