guyv
April 7, 2022, 6:44am
1
Hi!
Please can someone assist me.
I have a custom html section on my homepage with icons. It used to display correctly in mobile view (landscape) but now it displays incorrectly. See screenshot below.
www.electricrideco.com
Below is the code that has been used.
Any assistance would be greatly appreciated!
Custom HTML Section:
[

](https://electricrideco.com/pages/shipping)
[

](https://electricrideco.com/pages/price-guarantee)
[

](https://electricrideco.com/pages/contact)
[

](https://electricrideco.com/pages/financing)
CSS:
@media only screen and (min-width: 350px){
.medium-up--one-quarter {width:50% !important;}
}
@media only screen and (min-width: 750px){
.medium-up--one-quarter {width:25% !important;}
}
@guyv
add this code to your theme.scss file.
Navigate to online store >> Click edit theme code.
Now find theme.scss and paste the following code on the bottom:
@media only screen and (max-width: 768px){
.section-block--padding .grid__item-inner .rte{
display: grid !important;
grid-template-columns: 1fr 1fr;}
}
@media only screen and (min-width: 350px){
.medium-up--one-quarter {
width: unset !important;}
}
guyv
April 7, 2022, 7:34am
3
@eFoli-Marvic
Thanks a lot for your reply.
Let me just clarify:
Desktop view should look like this and not change:
After inserting your code it looks like this:
It’s only the mobile view that needs to be changed.
Thanks!
@guyv Please apply the code and check. I have given you the code that is for only mobile. It will not change the desktop view.
@guyv If the above code is not working properly then apply this code :
@media only screen and (max-width: 768px){
.section-block--padding .grid__item-inner .rte{
display: grid !important;
grid-template-columns: 1fr 1fr;}
.medium-up--one-quarter {
width: unset !important;
}
}
guyv
April 7, 2022, 8:22am
6
@eFoli-Marvic
Above code works perfectly! Thank you so much!!