How do I put this separator line on the product page?

Solved

How do I put this separator line on the product page?

anapdeabreu
Excursionist
21 0 10

anapdeabreu_0-1719592363904.png

When I save it in HTML and open it in the browser, it appears normally, but on the Shopify page it does not appear.

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2305 834 907

This is an accepted solution.

Hi @anapdeabreu, Please remove the old code and add this new code:

 

 

variant-selects::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    top: -7px;
    left: 0;
    background-color: #00000038;
}

variant-selects {
    position: relative;
}

 

 

Hope this can help you 

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 7 (7)

BSSCommerce-HDL
Shopify Partner
2305 834 907

Hi @anapdeabreu
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

BSSCommerceHDL_0-1719592679990.png

 

Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid

BSSCommerceHDL_1-1719592685205.png

 

Step 3: Insert the below code at the bottom of the file -> Save

.price__sale::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    top: 0;
    left: 0;
    background-color: #00000038;
}

Here is result: 

BSSCommerceHDL_2-1719592739165.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

anapdeabreu
Excursionist
21 0 10

Como seria para que estivesse sempre antes do seletor de variantes? Porque alguns produtos possuem variantes e avaliações, pouco antes do preço acabar não sendo o design desejado. link this for example: https://lojabauer.com.br/products/cinta-de-sustentacao-para-gestantes-bauer?variant=49339582447935

BSSCommerce-HDL
Shopify Partner
2305 834 907

Hi @anapdeabreu, Can you take a picture for me to describe the place you need?

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

anapdeabreu
Excursionist
21 0 10

anapdeabreu_0-1719594277183.png

Imagine that you have the evaluations already imported, it should look like I drew it. it's possible?
Not all products have it, but I want it to always be above the price if there are no variants, or above the variant selector if there are variants

BSSCommerce-HDL
Shopify Partner
2305 834 907

This is an accepted solution.

Hi @anapdeabreu, Please remove the old code and add this new code:

 

 

variant-selects::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    top: -7px;
    left: 0;
    background-color: #00000038;
}

variant-selects {
    position: relative;
}

 

 

Hope this can help you 

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Made4uo-Ribe
Shopify Partner
9865 2347 2945

Hi @anapdeabreu 

i cant find your reviews on the prodcut title. 

Check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.product__info-container > div:nth-child(3) {
    border-bottom: 5px solid black;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1719592883477.png

     

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.