• Greetings.

    I’m about to migrate my site to Virtue theme.

    Most of my pages are set to “fullwidth”.

    Running a Theme testing plugin (“Theme Test Drive”), I see that Virtue sets all pages to “default”, vs recognizing the setting from the old theme.

    For example, any page where I’ve changed the “page attributes” from “default” to “fullwidth”, get’s changed back to “default” after migrating to Virtue.

    I have dozens of pages, so manually changing them all from “default” to “fullwidth” would be very time consuming.

    I *think* the solution is to change the “default” page layout to “fullwidth” in the Virtue php(?).

    Any input/suggestions on this matter would be greatly appreciated.

    Thank you.

    Wordpress fullwidth default

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Mechawear,

    Unfortunately, since themes vary a lot, it’s probably going to require you to manually change each page template. Though the templates are named the same, each template is built by a different developer for a specific theme. Templates are entirely controlled on a theme to theme basis, so WordPress doesn’t have a default way to transfer the template information.

    Though time consuming, setting the page templates is just something you’ll have to deal with when changing themes. Hopefully this is helpful for you.

    -Kevinn

    Hey,
    So what you can do is turn of the sidebar as a default using a simple function in a child theme.

    You can download a child theme here: https://www.kadencethemes.com/child-themes/

    Then add this to the functions.php file:

    function kad_sidebar_default($sidebar) {
    	global $post;
    	if(is_page()){
    		if ( !get_page_template_slug( $post->ID ) ) {
    	    	$sidebar = false;
    	  	}
    	}
      	return $sidebar;
    }
    add_filter('kadence_display_sidebar', 'kad_sidebar_default');

    I hope that helps,

    Ben
    Kadence Themes

    Thread Starter MechaWear

    (@mechawear)

    Many thanks, Ben

    I downloaded, tested and trialsed (yes, a word) many new themes. Support like this is rapidly moving toward Kadence.

    I will play with the child themes and php tonight.

    You have to rename the template file that you want WP to use as default.
    The name is page.php. WP always uses page.php in case default template was specified in post editor.

    If you have something like page-fullwidth.php which you intend to be
    the default template rename it to page.php. Before – and only in case there is already a template named page.php – backup this file due to renaming, e.g. into page-default2.php. Later you could still choose page-default2 in post editor.

    SO far, i am late to response to an 4 month old problem. May be it helps
    someone else. Cheers,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Default Page Template to Fullwidth’ is closed to new replies.