Shopify themes, liquid, logos, and UX
As we can see in the image, the product title " Chrome Hearts" is misaligned with each other on MOBILE only and I would like them to be on the same line. this is happening on the homepage only and I would appreciate any help. The website link is Young Professionals Collective (ypcollective.com). TIA
Solved! Go to the solution
This is an accepted solution.
Hi @ypcollective ,
May I suggest to update code these steps:
1. Go to Store Online-> theme -> edit code
2. Layout/theme.liquid
3. Add code below to end of file ( refer screenshot)
{% if request.page_type == 'index' %}
<style>
@media(max-width: 480px){
#MainContent section .grid.product-grid .card-wrapper.product-card-wrapper .card__inner .card__content {
display: none!important;
}
#MainContent section .grid.product-grid .card-wrapper.product-card-wrapper .card__inner .card__media .media img{
height: 100%!important;
top: 0!important;
}
}
</style>
{% endif %}
This is an accepted solution.
Hi,
You can try to add code below to end of Layout/theme.liquid ( before </body> tag)
<style>
#MainContent section .grid.product-grid .card:not(.ratio) > .card__content,
#MainContent section .grid.product-grid .card__information {
height: 100%;
}
#MainContent section .grid.product-grid .card__information .card-information,
#MainContent section .grid.product-grid .card__information {
display: flex;
flex-flow: column;
}
#MainContent section .grid.product-grid .card__information .card-information {
height: 100%;
}
#MainContent section .grid.product-grid .card__information .card-information .price {
margin-top: auto;
}
</style>
This is an accepted solution.
Hi @ypcollective ,
May I suggest to update code these steps:
1. Go to Store Online-> theme -> edit code
2. Layout/theme.liquid
3. Add code below to end of file ( refer screenshot)
{% if request.page_type == 'index' %}
<style>
@media(max-width: 480px){
#MainContent section .grid.product-grid .card-wrapper.product-card-wrapper .card__inner .card__content {
display: none!important;
}
#MainContent section .grid.product-grid .card-wrapper.product-card-wrapper .card__inner .card__media .media img{
height: 100%!important;
top: 0!important;
}
}
</style>
{% endif %}
Thank you so much, id like to follow up by asking if its possible to also have the prices be aligned ?
This is an accepted solution.
Hi,
You can try to add code below to end of Layout/theme.liquid ( before </body> tag)
<style>
#MainContent section .grid.product-grid .card:not(.ratio) > .card__content,
#MainContent section .grid.product-grid .card__information {
height: 100%;
}
#MainContent section .grid.product-grid .card__information .card-information,
#MainContent section .grid.product-grid .card__information {
display: flex;
flex-flow: column;
}
#MainContent section .grid.product-grid .card__information .card-information {
height: 100%;
}
#MainContent section .grid.product-grid .card__information .card-information .price {
margin-top: auto;
}
</style>
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025