adjusting width of shop page elements
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 17:28:46 +0000 (12:28 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 17:28:46 +0000 (12:28 -0500)
functions.php
style.css

index 6cd75c6..215b9c0 100644 (file)
@@ -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
index 8943f12..b685515 100644 (file)
--- 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%; }