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>
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024