Hello,
i cant edit anything in my base.css.
I tried to add code, to hide a slideshow on a mobile phone.
@media screen and (max-width:749px){ #shopify-section-template–24506986365253__slideshow_7nVGDW {display:none; visibility:hidden;}
}
but somehow it doesnt work.
I have already tried inserting other code snippets to change other things, but none of them have ever worked in base.css.
I am using the Dawn theme, version 15.02.
Hey @JonasDialga,
I found a mistake in your code.
You are using the Shopify Section ID selector that always change when you make theme live or duplicate.
So this is not ideal solution for the css and it might not work well as per your request.
Could you please apply the css with the {{section.id}}.
in your case you need to find the slideshow.liquid file or video-slideshow.liquid file based on your theme structure.
After that add a style tag there and use the section.id. You can copy the below code.
Yes of course I can help with that.
Would you like to tell me what is the file name of the slideshow section by taking a look into the theme file and search for slideshow then you will find the exact name there.
And if possible can you share the 4 digits collab code in the p\m so that I can take a look by myself and fix with the issue.
Waiting for your response.
I checked and the current theme is not declaring the base.css file, instead it is declaring the base.aio.min.css file.
so please try adding code to base.aio.min.css file and check again.
If I helped you, then a Like would be truly appreciated.
You’ve pasted the code into your section file.
However, since this is a CSS code, it should be wrapped with <style> .. </style> if you’re pasting it directly into HTML/Liquid template/section.
But again – the proper way is to use “Custom CSS” setting.
Since you’ve edited theme code, modified files will be marked with a big black dot on the left.
(ignore the .json files)
Go to “edit theme code”, navigate to sections/slideshow.liquid and either recheck the code below </slideshow-component>
or you can revert to the original version of the file via this dropdown:
Did you change the code at base.aio.min.css file?
Because in theme.liquid file, it is declaring base.aio.min.css file instead of base.css file, so when you change anything in base.css file, it will not be able to recognize.
If I helped you, then a Like would be truly appreciated.