I want to Hide the Name text box from the Frontend only. https://gyazo.com/f45524e1414a5d00f4a0b737c8143cdc https://gyazo.com/73474c75203e28a40bb03720e54a94b9
this is a similar fix to this problem but in my case i only want to Hide the “Name”
Below code taken from google console code for this.
Name
Kind Regards
Hi @Chad25
Welcome to Shopify Community.
Aibek is here from Speedimize.io
You can hide the inline styles as below:
Or add in the end of theme.css:
```css
#SingleOptionSelector-0, label[for="SingleOptionSelector-0"] {
display: none;
}
Hope that helps you.
Thank you but when you say theme css do you mean
theme. scss. liquid
Yes, it is.
If you find this difficult.
Can you share URL of your shop and we can provide you a solution.
ok great i did that but it now is out of alignment https://gyazo.com/b8fafb09214e875b75ba14aa6bbe098c ?
what could fix this issue
also looks to have removed another filed on other products “the SIZE Filed” https://gyazo.com/924194b78a29d8262d3b33b6e7720567
It’s very hard to find a solution with just screenshoots.
Can you please share the URL of your shop? So we can provide solution for your shop/
Hello @Chad25
please Add this css
#SingleOptionSelector-0, label[for="SingleOptionSelector-0"] {
display: none;
}
system
June 9, 2021, 5:27am
10
We’re not looking for admin requests, now it’s forbidden in Shopify Community.
It can be done without it. Thank you for your cooperation.
Here is the solution:
add this code to the end of the theme.scss liquid:
.template-product .selector-wrapper.js.product-form__item:nth-child(1) {
display: none;
}
Chad25
June 9, 2021, 5:28am
11
thank you for your response but as you will see from above messages i tried this and yes it worked but it was also removing the Size box and the Name Box.
Chad25
June 9, 2021, 5:32am
12
Soz thought you wanted admin… i added that code but when you load another item you can see its removed the name but ALSO the SIZE https://www.benthandcraftedrings.com/collections/forces-of-nature/products/paua
i need the size and Width
system
June 9, 2021, 5:36am
13
You have accidentally removed this line:
we disabled our style now everything works fine. Can you please check?
Chad25
June 9, 2021, 5:40am
14
when adding this code
#SingleOptionSelector-0 , label[for=“SingleOptionSelector-0”] {
display: none;
}
to the css file it is removing both NAME BOX AND SIZE BOX i only want it to not show the name box
Chad25
June 9, 2021, 5:47am
15
short video to help explain what could be the issue https://storyxpress.co/video/kpp1p0ndw0y7601gc
system
June 9, 2021, 5:47am
16
Ok, now try this:
.template-product .selector-wrapper.js.product-form__item:nth-child(1) {
display: none;
}
This style is supposed to work. It will only hide the first element, in your case its “Name”. But you probably deleted it.
system
June 9, 2021, 6:01am
17
Now everything is much clear for us.
So now try this:
#product_form_6729509470387 .selector-wrapper.js.product-form__item:nth-child(1) {
display: none;
}
We specified the product id, since you only want to hide it for one product. Now everything should work as normal.
Chad25
June 9, 2021, 6:07am
18
Thank you very much kind sir… that did the job just fine.