How to add sidebar to Isola theme? [closed]

Go to the functions.php file inside of your theme and search for register_sidebar it could look like this: function isola_widgets_init() { register_sidebar( array( ‘name’ => esc_html__( ‘Sidebar’, ‘isola’ ), ‘id’ => ‘sidebar-1’, ‘description’ => ”, ‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</aside>’, ‘before_title’ => ‘<h2 class=”widget-title”>’, ‘after_title’ => ‘</h2>’, )); } add_action( ‘widgets_init’, … Read more

First post full width without Sidebar

You can also doe like below code snippet: $flag=0; $args = array( ‘orderby’ => ‘title’, ‘order’ => ‘DESC’,); $query = new WP_Query( $args ); while ( $query->have_posts() ) { { the_post(); if($flag==0) { // you first post’s title, content etc $flag=1; } else { //rest of your post’s title, sidebar, etc } }

Different themes on one site

You probably are over complicating things for yourself. You can use the template_include filter for that add_filter( ‘template_include’, ‘wpse_206394_template’, 99 ); function wpse_206394_template( $template ) { if ( template should be blabla ) { $new_template = locate_template( array( str_replace(‘.php’,’-blabla.php’,$template) ) ); if ( ” != $new_template ) { return $new_template ; } } return $template; … Read more