So yes, creating custom sections or editing the already made sections you are using to include two more options of hidi g the section on specific devices. Will be like a checkbox option in liquid settings and you can show/hide with css.
Secondly at the top of your section under stylesheet tag add this
For desktop
{% if section.settings.hide-on-desktop %}
.section-{{section.id}}{
display:none;
}
{% endif %}
{% if section.settings.hide-on-desktop == false %}
.section-{{section.id}}{
display:block;
}
{% endif %}
For mobile @media screen and (max-width: 767px){
{% if section.settings.hide-on-mobile %}
.section-{{section.id}}{
display:none;
}
{% endif %}
{% if section.settings.hide-on-mobile == false %}
.section-{{section.id}}{
display:block;
}
{% endif %}
}
Also in the section container add this under the classes section-{{section.id}}
This should do it. I hope i was able to explain. Things get tough when explaining like this. if you get it fine, if not you can try reaching out to me by email and i shall guide you through on a call. Or you can get me a collaborator access and tell me the sections you want this for and i shall do it for you.
Hi again! Thank you for your assistance. However, I didn’t manage to make it work with your solution. I found a work-around using an if-condition asking the path and adjusting the style accordingly. Also using a condition that’s also doing the same before the {%schema%} referencing to the condition above.