Shopify themes, liquid, logos, and UX
Hello Everyone!
Can the "select size" text be placed inside the box, and lines can be added below the text? Please help me. Thank you. I have used this code.
.product x-popover:before {
content: "Select Size";
width: 100%;
text-align: center;
display: block;
}
Password: Admin
Solved! Go to the solution
This is an accepted solution.
<style>
.popover::part(header) {
display: block !important;
}
.popover::part(close-button) {
margin-top: -18px;
}
</style>
then just use this code to sloved you issue
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body> ----->
before the body ----->
if this code work please do not forget to like and mark it solution
Hey @dreamtechzone_5 ,
Here’s a clean and styled approach you can use:
.product x-popover::before {
content: "Select Size";
display: block;
width: 100%;
text-align: center;
padding: 8px 0;
font-weight: bold;
border-bottom: 1px solid red; /* or any color you prefer */
background-color: white; /* Match dropdown background */
position: relative;
z-index: 1;
}
Thanks!
Best Regards,
Rajat
Shopify Expert
<style>
.popover::part(header) {
display: contents !important;
}
.h5, :where(.prose h5) {
margin-bottom: -20px !important;
margin-top: 15px !important;
}
</style>
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body> ----->
before the body ----->
if this code work please do not forget to like and mark it solution
Can a border line be added under "Select Size"?
This is an accepted solution.
<style>
.popover::part(header) {
display: block !important;
}
.popover::part(close-button) {
margin-top: -18px;
}
</style>
then just use this code to sloved you issue
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body> ----->
before the body ----->
if this code work please do not forget to like and mark it solution
Thank you so much. It worked. One more thing I want to fix. Please help me.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025