Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Add line between section

Solved

Add line between section

ai41
Explorer
54 0 11

Hi ,

 

i want to add line after my collection section also before the footer like the photo

im using dawn theme

how to do it , 

here my website link :https://b6448a-44.myshopify.com/

 

Screenshot (133).png 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
9045 2161 2667

This is an accepted solution.

Oh, i thought only on the collection pages. 

Try this one then. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

 .newsletter.center {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
  }

 

  • And Save.

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 4 (4)

Made4uo-Ribe
Shopify Partner
9045 2161 2667

Hi @ai41 

Try this one. 

1. From your Shopify admin dashboard, click on "Online Store" and then "Themes"

2. Find the theme that you want to edit and click on "Actions" and then "Edit code".

3. In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

 {% if template.name == 'collection' %}
<style>
  .newsletter.center {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
  }
</style>
{% endif %}

 

And Save. 

Result:

Made4uoRibe_0-1729028161052.png

 

Note: This will only show on the collection page. 

 

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
ai41
Explorer
54 0 11

thank you sir for your time , but it did not work , i want it also to show on all pages

Made4uo-Ribe
Shopify Partner
9045 2161 2667

This is an accepted solution.

Oh, i thought only on the collection pages. 

Try this one then. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

 .newsletter.center {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
  }

 

  • And Save.

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
ai41
Explorer
54 0 11

thank you its working