Fixes the layout on shop pages when using Twenty Eleven. closes #10665

This commit is contained in:
James Koster 2016-04-15 13:24:17 +01:00
parent 2b20a5cbc1
commit ba009c6fc5
3 changed files with 25 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -329,6 +329,27 @@
}
}
/**
* Twenty Eleven specific styles
*/
.woocommerce-page {
&.left-sidebar {
#content.twentyeleven {
width: 58.4%;
margin: 0 7.6%;
float: right;
}
}
&.right-sidebar {
#content.twentyeleven {
margin: 0 7.6%;
width: 58.4%;
float: left;
}
}
}
/**
* Twenty Fourteen specific styles
*/

View File

@ -24,7 +24,9 @@ $template = get_option( 'template' );
switch( $template ) {
case 'twentyeleven' :
echo '</div></div>';
echo '</div>';
get_sidebar( 'shop' );
echo '</div>';
break;
case 'twentytwelve' :
echo '</div></div>';