Hello all, I followed this guide to editing the CSS on Debut Theme. This was the exact issue I had and, for the most part, perfectly resolved what I needed (refer to attachment X.png) and everything was centred under the image.
However, when the ‘Compare as’ price is empty in any Product Page (refer to attachment Z.png), a price value still appears near the image which makes it look like the price appears twice (refer to attachment Y.png).
Any idea why this is? and how do I make it go away on all collection pages and product pages while preserving the functionality of the theme so that I can add ‘Compare as’ pricing within each Product Page when needed?
Information
-
Theme: Debut
-
PW: pokemon
This is the only Custom CSS I have added (I have not removed any of the pre-existing CSS either):
/== Start of Custom CSS - Center Align Titles and Prices Under Product Images in Collections & Product Recommendations ==/
dl.price {
align-items: center;
}
.h4.grid-view-item__title.product-card__title {
text-align: center;
width: 100%;
font-size: 15px;
display: block;
text-decoration: none;
line-height: 1.6;
}
.template-product dl.price{align-items: flex-start;
}
.product-recommendations__inner dl.price {align-items: center;
}
.price__sale {
margin-right: 0;
display: block !important;
}
.price__compare dd {
margin-right: 1;
display: block !important;
}
.price__regular dd {
margin-right: 1;
}
.product-card {
text-align: center;
}
.price–on-sale .price__badge–sale {justify-content: center;
}
/== Removes Underline Upon Hover ==/
.product-card:hover .product-card__title,
.product-card:focus-within .product-card__title {
border-bottom: none !important;
}
/== Change font on product price on product page ==/
.price-item {
font-size: 16px !important;
font-weight: 400;
color: #333232 !important;
}
.price dd{
margin-right: 0 !important
}
.price__pricing-group .price__sale{
flex-direction: row !important;
display: flex !important;
}
.price__pricing-group .price__sale dd:first-of-type{
margin-right: 10px !important;
}
.template-product .product-single__meta .price__badge–sale{
margin-left: 10px !important;
}
/== End of Custom CSS - Center Align Titles and Prices Under Product Images in Collections & Product Recommendations ==/
Attachments
Image X
Image Y
Image Z




