Dawn theme- Place horizontal lines on either side of rich text title

Solved

Dawn theme- Place horizontal lines on either side of rich text title

Goldy007
Tourist
10 0 1

Hello,

Can someone please help me with a code to Place horizontal lines on either side of rich text title? Like in this pic:

 

Screen Shot 2024-07-18 at 5.23.03 PM.png

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10211 2427 3078

This is an accepted solution.

You mention richtext. 

Check this one. If it not working you can pm me. For the URL. 

  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.

 

@media only screen and (min-width: 749px){
h2.rich-text__heading.rte.inline-richtext {
    position: relative;
}
h2.rich-text__heading.rte.inline-richtext:before,
h2.rich-text__heading.rte.inline-richtext:after {
    content: '';
    border-top: 3px solid red;
    position: absolute;
    top: 50%; 
    width: 25%;
    transform: translateY(-50%);
    opacity: 0.5;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); 
}
h2.rich-text__heading.rte.inline-richtext:before {
    left: 0;
}
h2.rich-text__heading.rte.inline-richtext:after {
    right: 0; 
}
}

 

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

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.

View solution in original post

Replies 10 (10)

Made4uo-Ribe
Shopify Partner
10211 2427 3078

Hi @Goldy007 

Can i try, would you mind to share your store URL? Thanks!

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.
Goldy007
Tourist
10 0 1

I was hoping for a code so I can change colors, thickenss etc.., and add to other sections where I want it. Would that be possible?

AK_Design_Dev
Shopify Partner
187 16 16

Yes, u can if you have theme knowledge or little bit code knowledge 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
Made4uo-Ribe
Shopify Partner
10211 2427 3078

This is an accepted solution.

You mention richtext. 

Check this one. If it not working you can pm me. For the URL. 

  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.

 

@media only screen and (min-width: 749px){
h2.rich-text__heading.rte.inline-richtext {
    position: relative;
}
h2.rich-text__heading.rte.inline-richtext:before,
h2.rich-text__heading.rte.inline-richtext:after {
    content: '';
    border-top: 3px solid red;
    position: absolute;
    top: 50%; 
    width: 25%;
    transform: translateY(-50%);
    opacity: 0.5;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); 
}
h2.rich-text__heading.rte.inline-richtext:before {
    left: 0;
}
h2.rich-text__heading.rte.inline-richtext:after {
    right: 0; 
}
}

 

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

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

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.
Goldy007
Tourist
10 0 1

This worked! Thank you so much!!!

 

AK_Design_Dev
Shopify Partner
187 16 16

Hello @Goldy007 

Add this css on your base.css or global.css file

.title-wrapper {

   position: relative;

   text-align: center;

}
.title-wrapper:before {

   content: '';

   background: red;

   left: 220px;

   width: 20%;

   height: 2px;

   position: absolute;

   top: 0;

   bottom: 0;

   margin: auto;

}
.title-wrapper:after {

   content: '';

   background: red;

   right: 220px;

   width: 20%;

   height: 2px;

   position: absolute;

   top: 0;

   bottom: 0;

   margin: auto;

}



If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
Goldy007
Tourist
10 0 1

Thank you for trying- this code didn't work. I tried adding to the base.css, and also tried to insert it directly in the section in the custom CSS. In the custom css section this part >>>>>  .title-wrapper , and .title-wrapper:before  wasn't recognized. This is the section I'm trying to add it to. I'm using the latest Dawn theme. 

 

Screen Shot 2024-07-19 at 2.03.52 PM.png

 

 

AK_Design_Dev
Shopify Partner
187 16 16

Yes, but this css are anyway working 

 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com
Goldy007
Tourist
10 0 1

It is not working on .base or the custom css section. Any other ideas or codes I can try?  Thx for helping!

AK_Design_Dev
Shopify Partner
187 16 16

can you share url 

 

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link:-

Contribution


Contact On My Mail :-mail@gmail.com