{"id":292,"date":"2014-02-21T00:03:42","date_gmt":"2014-02-20T23:03:42","guid":{"rendered":"http:\/\/alexis.nomine.fr\/en\/?p=292"},"modified":"2014-02-21T00:03:42","modified_gmt":"2014-02-20T23:03:42","slug":"bit-responsiveness-woocommerce-2-1-default-stylesheet","status":"publish","type":"post","link":"https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/","title":{"rendered":"More responsiveness for WooCommerce 2.1 default stylesheet"},"content":{"rendered":"<p>Following my article on <a href=\"http:\/\/alexis.nomine.fr\/en\/blog\/2013\/04\/27\/a-bit-of-responsiveness-for-woocommerce-2-0-default-stylesheet\/\">how to add responsiveness to WooCommerce 2.0 default stylesheet<\/a>, here is how to add <b>more<\/b> responsiveness to <a href=\"http:\/\/www.woothemes.com\/woocommerce\/\">WooCommerce 2.1<\/a>.<\/p>\n<p>In this great new version, WooThemes developers decided to separate layout from the rest of the style. Which is good news because it's a lot easier to identify where css has to change to be responsive. What I like less is that responsive behavior they added is too limited: only one \"breakpoint\" around 768px, so it doesn't adapt that well to the available space on screen of the variety of devices (smartphones, phablets, tablets ...).<\/p>\n<p>So let's update it with 4 breakpoints so the product grid grows from 1 to 4 products per line, with a bit of \"mobile first\" flavour.<\/p>\n<p>If you want to get straight to the point, you can download the updated stylesheet <a title=\"More Responsive stylesheet for WooCommerce 2.1\" href=\"https:\/\/gist.githubusercontent.com\/alexisnomine\/9124124\/raw\/74e8df48ea11b3af97b64e7db59ca62c0bae1137\/woocommerce-layout.css\" target=\"_blank\">here<\/a>, upload it in your theme folder, and add this in your functions.php file:<\/p>\n<div class=\"oembed-gist\"><script src=\"https:\/\/gist.github.com\/alexisnomine\/9124124.js?file=functions.php\"><\/script><noscript>View the code on <a href=\"https:\/\/gist.github.com\/alexisnomine\/9124124\">Gist<\/a>.<\/noscript><\/div>\n<p>After the break, the updated \"woocommerce-layout.less\" with some comments:<\/p>\n<p><!--more--><\/p>\n<div class=\"oembed-gist\"><script src=\"https:\/\/gist.github.com\/alexisnomine\/9124124.js?file=woocommerce-layout.less\"><\/script><noscript>View the code on <a href=\"https:\/\/gist.github.com\/alexisnomine\/9124124\">Gist<\/a>.<\/noscript><\/div>\n<div class=\"box-hint\">If you want IE8 to enjoy the power of media queries and not getting the \"mobile\" display, you can conditionnaly add <a href=\"https:\/\/github.com\/scottjehl\/Respond\">Respond.js<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Following my article on how to add responsiveness to WooCommerce 2.0 default stylesheet, here is how to add more responsiveness to WooCommerce 2.1. In this great new version, WooThemes developers decided to separate layout from the rest of the style. Which is good news because it&#8217;s a lot easier to identify where css has to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[17,21,20],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-media-queries","tag-responsive","tag-woocommerce"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>More responsiveness for WooCommerce 2.1 default stylesheet - Nomine Web Creations<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alexis Nomin\u00e9\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/blog\\\/2014\\\/02\\\/21\\\/bit-responsiveness-woocommerce-2-1-default-stylesheet\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/blog\\\/2014\\\/02\\\/21\\\/bit-responsiveness-woocommerce-2-1-default-stylesheet\\\/\"},\"author\":{\"name\":\"Alexis Nomin\u00e9\",\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/#\\\/schema\\\/person\\\/3b5fe5cc50f1203f12855f8dee331109\"},\"headline\":\"More responsiveness for WooCommerce 2.1 default stylesheet\",\"datePublished\":\"2014-02-20T23:03:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/blog\\\/2014\\\/02\\\/21\\\/bit-responsiveness-woocommerce-2-1-default-stylesheet\\\/\"},\"wordCount\":199,\"commentCount\":28,\"keywords\":[\"media queries\",\"responsive\",\"WooCommerce\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/blog\\\/2014\\\/02\\\/21\\\/bit-responsiveness-woocommerce-2-1-default-stylesheet\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/blog\\\/2014\\\/02\\\/21\\\/bit-responsiveness-woocommerce-2-1-default-stylesheet\\\/\",\"url\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/blog\\\/2014\\\/02\\\/21\\\/bit-responsiveness-woocommerce-2-1-default-stylesheet\\\/\",\"name\":\"More responsiveness for WooCommerce 2.1 default stylesheet - Nomine Web Creations\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/#website\"},\"datePublished\":\"2014-02-20T23:03:42+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/#\\\/schema\\\/person\\\/3b5fe5cc50f1203f12855f8dee331109\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/blog\\\/2014\\\/02\\\/21\\\/bit-responsiveness-woocommerce-2-1-default-stylesheet\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/\",\"name\":\"Nomine Web Creations\",\"description\":\"Websites creation, development, web design\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/#\\\/schema\\\/person\\\/3b5fe5cc50f1203f12855f8dee331109\",\"name\":\"Alexis Nomin\u00e9\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1d01656b8ca51f9a4999518e34d1477667b1bdc8abf11eea3430e03a78bcf48e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1d01656b8ca51f9a4999518e34d1477667b1bdc8abf11eea3430e03a78bcf48e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1d01656b8ca51f9a4999518e34d1477667b1bdc8abf11eea3430e03a78bcf48e?s=96&d=mm&r=g\",\"caption\":\"Alexis Nomin\u00e9\"},\"url\":\"https:\\\/\\\/alexis.nomine.fr\\\/en\\\/blog\\\/author\\\/alexis\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"More responsiveness for WooCommerce 2.1 default stylesheet - Nomine Web Creations","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/","twitter_misc":{"Written by":"Alexis Nomin\u00e9","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/#article","isPartOf":{"@id":"https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/"},"author":{"name":"Alexis Nomin\u00e9","@id":"https:\/\/alexis.nomine.fr\/en\/#\/schema\/person\/3b5fe5cc50f1203f12855f8dee331109"},"headline":"More responsiveness for WooCommerce 2.1 default stylesheet","datePublished":"2014-02-20T23:03:42+00:00","mainEntityOfPage":{"@id":"https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/"},"wordCount":199,"commentCount":28,"keywords":["media queries","responsive","WooCommerce"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/","url":"https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/","name":"More responsiveness for WooCommerce 2.1 default stylesheet - Nomine Web Creations","isPartOf":{"@id":"https:\/\/alexis.nomine.fr\/en\/#website"},"datePublished":"2014-02-20T23:03:42+00:00","author":{"@id":"https:\/\/alexis.nomine.fr\/en\/#\/schema\/person\/3b5fe5cc50f1203f12855f8dee331109"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/alexis.nomine.fr\/en\/blog\/2014\/02\/21\/bit-responsiveness-woocommerce-2-1-default-stylesheet\/"]}]},{"@type":"WebSite","@id":"https:\/\/alexis.nomine.fr\/en\/#website","url":"https:\/\/alexis.nomine.fr\/en\/","name":"Nomine Web Creations","description":"Websites creation, development, web design","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/alexis.nomine.fr\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/alexis.nomine.fr\/en\/#\/schema\/person\/3b5fe5cc50f1203f12855f8dee331109","name":"Alexis Nomin\u00e9","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1d01656b8ca51f9a4999518e34d1477667b1bdc8abf11eea3430e03a78bcf48e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1d01656b8ca51f9a4999518e34d1477667b1bdc8abf11eea3430e03a78bcf48e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1d01656b8ca51f9a4999518e34d1477667b1bdc8abf11eea3430e03a78bcf48e?s=96&d=mm&r=g","caption":"Alexis Nomin\u00e9"},"url":"https:\/\/alexis.nomine.fr\/en\/blog\/author\/alexis\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":3,"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":296,"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/posts\/292\/revisions\/296"}],"wp:attachment":[{"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexis.nomine.fr\/en\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}