Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi. I have a rich txt section which I use to add a button on my home page. Since I have buttons on my banner I don't want it to show on Desktop -- but I do want it to show on Mobile -- Looking for a way to make this happen -- Thanks!!
Solved! Go to the solution
This is an accepted solution.
Hi @StaceyS
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (min-width: 749px){
.rich-text.content-container.color-background-1.gradient.section-template--21766862340396__07da73f3-afd4-4dd8-9806-661137f813e5-padding {
display: none;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @StaceyS
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (min-width: 749px){
.rich-text.content-container.color-background-1.gradient.section-template--21766862340396__07da73f3-afd4-4dd8-9806-661137f813e5-padding {
display: none;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!