I’m trying to hide a section in Shopify only on the computer by ID, it happens that after some time the ID of the section changes, is there any way for the ID to stay the same forever?
If you’re trying to hide a section on desktop only, you can use media queries based on the screen width, and you can also use classes or other selectors that are less likely to change.
Here’s an example of how you can modify your code:
css: @media only screen and (min-width: 767px) {
.your-section-class {
display: none !important;
}
}
Replace “your-section-class” with the actual class of the section you want to hide. If your section doesn’t have a class, you might need to inspect the HTML code and find a more stable selector.