Reply To: Home page different layout plus remove elipse

Home Forums Support Home page different layout plus remove elipse Reply To: Home page different layout plus remove elipse

#234465
Tom
Lead Developer
Lead Developer

You can do that with a function:

add_filter( 'generate_sidebar_layout','generate_front_page_sidebar_layout' );
function generate_front_page_sidebar_layout( $layout )
{
 	// No sidebars on the front page
 	if ( is_front_page() )
 	 	return 'no-sidebar';

 	// Or else, set the regular layout
 	return $layout;

}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/