I want to put a circle around a heading.

Solved

I want to put a circle around a heading.

Phreshcareco
Excursionist
40 0 7

Hey guys,

 

Url - www.phreshcareco.com.au 

 

I want to put a circle around the ". I would like the " to be white and the circle fill to be #181e40. 

Can anyone help me with this please? 

 

Screen Shot 2024-08-12 at 3.28.16 pm.png

Accepted Solution (1)

Sweans
Shopify Partner
391 75 116

This is an accepted solution.

Hi @Phreshcareco ,

 

You can achieve the desired result by simply adding the below code to a specific line in the base.css file of your shopify theme.

You can follow these steps to do that:

 

Step 1: Open the base.css file

Go to Shopify backend→ Sales Channel → Online Store → Themes → click the three dots near your active theme → Edit code → Search for base.css in the search section(See the screenshots below):

 

Sweans_0-1723443043611.png

 

Sweans_1-1723443069105.png

 

 

Step 2 : Add the code block

 

Add this code block to the bottom of the base.css file .

 

 

.banner__box.content-container .slick-list.draggable .banner__heading.inline-richtext {
  width: 60px;
  margin-inline: auto;
  border-radius: 100vw;
  aspect-ratio: 1 / 1;
  background: #181e40;
  color: white;
  height: 60px;
  line-height: 1.3;
  text-indent: -14px;
}

 

 

Once this is done you will have a result like this :-

Sweans_2-1723443085519.png

 

If you found this helpful, leave a like and choose this as the accepted solution,

If you have any other queries feel free to ask me as well.

 

Regards,

Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com

View solution in original post

Replies 5 (5)

saim007
Shopify Partner
602 74 104

@Phreshcareco You want like this - 

saim007_0-1723442584916.png

 

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂
Phreshcareco
Excursionist
40 0 7

Hey mate, 

 

Thats exactly what i want, is there any way we can edit the size on the circle in the css? 

saim007
Shopify Partner
602 74 104

@Phreshcareco Below is the code, you can put this code in the end of your base.css or in your custom.css if you have-

.review_slide .banner__heading {
    border: 1px solid #fff;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    background-color: #181e40;
    color: #fff;
    margin-inline: auto;
    aspect-ratio: 1;
    line-height: 1.4;
    text-indent: -12px;
}

 

For increase and decrease the size of the circle you can increase/decrease the width and height in the css code. 

 

Please let me know when works!

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂

Sangeetanahar
Excursionist
323 21 49

Hello @Phreshcareco 

1.Go to online store ---------> themes --------------> actions ------> edit code------->assets.............>base.css

 

	.review_slide .banner__heading {
    width: 75px;
    height: 75px;
    margin: 0 auto;
    border: 5px solid #181e40;
    border-radius: 100%;
    font-size: 50px;
    padding: 13px;
    text-align-last: justify;
}

result will becir.png

 

 


add this code at the end of the file

If my solution is up to you then mark accept solution

thanks

 

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -sangeetarahuldhiman@gmail.com - Skype: live:sangeetarahuldhiman -Whatsapp: +917009811712
Checkout Some Free Sections Here

Sweans
Shopify Partner
391 75 116

This is an accepted solution.

Hi @Phreshcareco ,

 

You can achieve the desired result by simply adding the below code to a specific line in the base.css file of your shopify theme.

You can follow these steps to do that:

 

Step 1: Open the base.css file

Go to Shopify backend→ Sales Channel → Online Store → Themes → click the three dots near your active theme → Edit code → Search for base.css in the search section(See the screenshots below):

 

Sweans_0-1723443043611.png

 

Sweans_1-1723443069105.png

 

 

Step 2 : Add the code block

 

Add this code block to the bottom of the base.css file .

 

 

.banner__box.content-container .slick-list.draggable .banner__heading.inline-richtext {
  width: 60px;
  margin-inline: auto;
  border-radius: 100vw;
  aspect-ratio: 1 / 1;
  background: #181e40;
  color: white;
  height: 60px;
  line-height: 1.3;
  text-indent: -14px;
}

 

 

Once this is done you will have a result like this :-

Sweans_2-1723443085519.png

 

If you found this helpful, leave a like and choose this as the accepted solution,

If you have any other queries feel free to ask me as well.

 

Regards,

Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com