No content to show
User Activity
Hey @RobertoLopezMon yes I see what's going on. You are adding your CSS in the wrong spot. You don't need to add any in the Custom CSS section, only in the Javascript file on line 1285 where it says sheet.insertRule(``). Replace the contents of it wi...
No I don't have any errors in my console. Were you able to look through your source code and find what your id is in that spot I circled?
Does your first declaration for border radius and border work? Your second one will not work because it's a class and you don't have a period at the front. It should be: ._formSubmitButton_1ll8d_81 {
font-weight: bold !important;
}If no classes ar...
Hmm yeah sounds like something with this line: const form = document.querySelector('.form-embed'). Have you tried const form = document.querySelector('#app-embed')? That worked with my form code. You need to find a class or id in the divs in your <fo...
In my case, I added it to my custom.js file. If you put it in a .js file, you should remove the <script> or </script> tags at the beginning and end of the above code. If you have a global.js file in your theme, that would be a good place to put it (i...
This code works for me as well! I'm using Shopify Forms on a Dawn-based theme. Only thing is I didn't know where '.form-container' was supposed to be, so I changed mine to '#app-embed'. Great find, thank you for sharing!
03-28-2024
I totally agree with you. I have a use case for using a variable defined in a snippet. I decided to stick with include until it's fully sunset. For now I couldn't find a way with render.
03-06-2024
This is an excellent answer, very thorough. As a developer, I appreciate answers like this instead of those who just push to use apps. Keep it up my friend!
Good call. Will do.
I'm using Shopify CLI v3.53.0 in VS Code. Since Friday 1/5 when I refresh the page I get: Internal Server Error wrong constant name }}getWEBrick/1.7.0 (Ruby/3.2.2/2023-03-30) at 127.0.0.1:9292 Anyone else having the same issue? For now if I refresh a...
Arti-Art, THANK you for your response! I've been fighting with the /change.js endpoint for hours and couldn't figure out why I was getting a 400 request in the response. I simply added a toString() to my id and now it works. The Shopify documentation...
Yes, this worked for me. In my case I was trying'shopify theme dev --store{store_name}, but instead I used'shopify theme dev --store store_name.myshopify.com and it worked.
Thank you so much @Tejas_Nadpara! I spent a day trying to do this through Javascript and this code was all I needed the whole time.