This topic has 6 replies, 2 voices, and was last updated 7 years ago ago by Rose Tyler
Hi,
We have some bespoke coding for our category page, to decrease or increase the gap between ‘Product name and Product Price, see here: https://screencast.com/t/gMHHHJLTC92N
And it works well, but unfortunately not on mobile phones.
See here: https://screencast.com/t/UYlzxvdBHSUL
What is the CSS I need to narrow this gap?
Hello,
Please find this code in your custom.css
.products-grid .product .add-to-container{
width: 100%;
position: absolute;
bottom: 0;
text-align: center;
}
and change to
@media (min-width:480px){
.products-grid .product .add-to-container{
width: 100%;
position: absolute;
bottom: 0;
text-align: center;
}
}
Regards
Hi
I have applied the CSS but the gap on mobile still appears to be the same?
I am sure cache has been cleared, but so not sure anything has changed
Hello,
Could you please provide wp-admin access in Private Content?
Regards
Sorry for delay I thought I had sent already
You need to add custom css code in custom.css file of legenda parent theme or in style.css file of child theme. Custom.css file of child theme woun’t work correctly, so I would recommend you to transfer all your custom code in style.css file of child theme.
Let us know if you need any further assistance.
Regards
You must be logged in to reply to this topic.Log in/Sign up