Different mobile styling for custom shortcode
-
Hi,
I have added the shortcode
[recent_products columns="4" limit="4"]
to list my 4 most recent products.I notice the mobile styling differs from the regular product pages. Normally 2 columns in screens of max
768px
, but with this shortcode only 1 column:With this shortcode:
@media (max-width: 768px) .woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .woocommerce-page[class*=columns-] ul.products li.product, .woocommerce[class*=columns-] ul.products li.product { width: 100%; float: none; } }
Regular product pages:
media="only screen and (max-width: 768px)" .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product { width: 48%; float: left; clear: both; margin: 0 0 2.992em; } }
Why 1 column and other pages 2 columns? Or am I missing something?
Guido
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Different mobile styling for custom shortcode’ is closed to new replies.