New type of heading

New type of heading

Old_money
Tourist
14 0 5

Hello. I want to display these type of headings in my store

Untitled (1).png

 

Thanks

Reply 1 (1)

Sweans
Shopify Partner
406 80 124

Hi @Old_money,

 

You can place the following HTML code in your Shopify theme where you want the heading to appear (in template file)

 

<div class="shop-the-look-heading"> 
<span></span> <h2>SHOP THE LOOK</h2> <span></span> 
</div>

 

CSS

 

.shop-the-look-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.shop-the-look-heading h2 {
  font-family: 'Playfair Display', serif; /* Change this to Avenir Next or your desired font */
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 20px;
  margin: 0;
}

.shop-the-look-heading span {
  flex-grow: 1;
  height: 1px;
  background-color: black;
  margin: 0 10px;
  position: relative;
}

.shop-the-look-heading span:before,
.shop-the-look-heading span:after {
  content: '';
  width: 6px;
  height: 6px;
  background-color: black;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
}

.shop-the-look-heading span:before {
  left: -10px;
}

.shop-the-look-heading span:after {
  right: -10px;
}

 

I hope this helps! If it does, please like it and mark it as a solution!

If you need further assistance, feel free to reach out!

 

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 [email protected] regarding any help.
- To know more about me check out www.sweans.com