The following code puts the search icon together with an input line beautifully under the shop logo on Mobile. You can test this in mobile in your test theme using the css editor. However when saving you get the error “Session in editor cannot be published”. Does anybody know why this code works but cannot saved?
It’s because Shopify’s new Custom CSS editor doesn’t support some of the CSS properties. You can talk to support to find out which ones aren’t supported from your code.
A workaround would be to add CSS to theme.css, base.css or create a custom one, depending on the theme you are using.
Yes I’m trying to push the CSS editor to the limits and so tried adjusting the code accordingly but the search is now not rendered as good as in the above code and still not saving:
Why is this the case? Why does the CSS editor only allow saving certain CSS rules?
I can input any CSS just fine and it is displayed correctly in the editor. It just refuses to save when it encounters CSS rules that it doesn’t know. I wonder what the purpose of this is? It does happily save invalid CSS property values for properties that it “knows”. Why then does it refuse CSS properties and directives simply on the basis that it doesn’t know them? This doesn’t make sense. Either your stupid CSS editor checks for validity or it doesn’t. This is half-arsed bleep and utter incompetence as one is already used from Shopify. Another “feature” for the trash can.