From: Anthony Talarico Date: Mon, 23 Nov 2015 17:28:46 +0000 (-0500) Subject: adjusting width of shop page elements X-Git-Tag: v1.0.0^2~77 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ba6382c9eb8ed514194114daee3d3c702cdd4ae1;p=WP-Themes%2Fthemoleholeonline.git adjusting width of shop page elements --- diff --git a/functions.php b/functions.php index 6cd75c6..215b9c0 100644 --- a/functions.php +++ b/functions.php @@ -9,8 +9,8 @@ * Initialize all the things. */ require get_stylesheet_directory() . '/inc/init.php'; -// Display 24 products per page. Goes in functions.php -add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 19;' ), 20 ); + + /** * Do not add custom code / snippets here. * While Child Themes are generally recommended for customisations, in this case it is not diff --git a/style.css b/style.css index 8943f12..b685515 100644 --- a/style.css +++ b/style.css @@ -1084,10 +1084,10 @@ p.stars a { .site-main .columns-4 ul.products li.product { width: 25%; margin-right: 0%; } - .site-main .columns-4 ul.products li.product:nth-child(3n) { + .site-main .columns-4 ul.products li.product{ width: 25%; } - .site-main .columns-4 ul.products li.product:nth-child(5n) { - width: 50%; } + /* .site-main .columns-4 ul.products li.product:nth-child(5n) { + width: 50%; } */ .site-main .columns-5 ul.products li.product { width: 20%; margin-right: 0%; }