Skip to content

Commit 5536583

Browse files
committed
* 1.0.9 - Updated CSS rules to isolate styling to product brands only.
1 parent b95ef37 commit 5536583

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

includes/class-product-brand-shortcode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function product_brand_list_shortcode($atts) {
3434
$output = '';
3535

3636
if (!empty($brands)) {
37-
$output .= '<div class="brand-gallery main-carousel">';
37+
$output .= '<div class="fd-product-brand brand-gallery main-carousel">';
3838

3939
foreach ($brands as $brand) {
4040
$brand_id = $brand->term_id;

public/css/product-brands.css

+18-17
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1-
@media screen and (max-width: 768px) {
2-
.flickity-enabled {
3-
margin-left: 0;
4-
margin-right: 0;
1+
@media screen and (max-width: 768px) {
2+
.fd-product-brand {
3+
margin-left: 0;
4+
margin-right: 0;
55
}
6-
.flickity-enabled .carousel-cell {
7-
margin-left: 0;
6+
.fd-product-brand .carousel-cell {
7+
margin-left: 0;
88
}
9-
}
10-
11-
.flickity-enabled {
9+
}
10+
11+
.fd-product-brand {
1212
margin-left: 5rem;
1313
margin-right: 5rem;
14-
}
14+
}
1515

16-
.flickity-enabled .carousel-cell {
17-
height: 200px;
18-
width: 200px;
19-
margin-left: 3rem;
20-
}
16+
.fd-product-brand .carousel-cell {
17+
height: 200px;
18+
width: 200px;
19+
margin-left: 3rem;
20+
}
2121

22-
.flickity-enabled .carousel-cell img {
22+
.fd-product-brand .carousel-cell img {
2323
position: absolute;
2424
top: 50%;
2525
transform: translateY(-50%);
2626
max-height: 100px;
27-
}
27+
}
28+

readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ To use this shortcode, you can simply add `[product_brand_list]` to any post or
1616
* 1.0.6 - Responsive CSS update, enable draggable
1717
* 1.0.7 - shortcode url link correction, link to slug instead of brand name.
1818
* 1.0.8 - Bug Fix - class WooCommerce_Product_Brand does not have a method "save_product_brand_meta_data"
19+
* 1.0.9 - Updated CSS rules to isolate styling to product brands only.
1920

2021

2122
# Future Development

0 commit comments

Comments
 (0)