Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter carrieathomer

    (@carrieathomer)

    Sorry wrong copy paste, can moderator delete it

    i apologize

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What do you want deleted?

    back to your original problem:

    the ‘sidebar stuff’ for page templates seems to be controlled by this function in functions.php of the theme:

    /**
     * Disables sidebars if viewing a one-column page.
     *
     */
    function origin_disable_sidebars( $sidebars_widgets ) {
    
    	global $wp_query;
    
    	    if ( is_page_template( 'page-template-fullwidth.php' ) ) {
    		    $sidebars_widgets['primary'] = false;
    	    }
    
    	return $sidebars_widgets;
    }

    if you create a new pege template without sidebar, you probably might need to integrate it there.

    Thread Starter carrieathomer

    (@carrieathomer)

    Thanks a lot for the response. It worked. However, i need to include an style in the css for the template name

    .page-template-homepage #content{width:100%;}

    thanks again, thanks again

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New Page Template not working’ is closed to new replies.