• Resolved vaguelymarci

    (@vaguelymarci)


    Anyone know how to remove the page border? I find it squishes all my content in the middle, making it really hard to read.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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' );
    Thread Starter vaguelymarci

    (@vaguelymarci)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove page border’ is closed to new replies.