Change font of Product Title

Solved

Change font of Product Title

shilpa_etsy
Shopify Partner
37 0 4

Hello! I'm using latest font theme, and I have added a custom font, but it doesn't look good on product title,so I want my body font same as title font. please help, thank you!

https://lunar-white-theme.myshopify.com/
pass - shakti

Accepted Solution (1)
BSSCommerce-B2B
Shopify Partner
1722 513 576

This is an accepted solution.

@shilpa_etsy, yes you can use

<style>
.product__title h1{
  font-family: var(--font-body-family)!important;
}
</style>

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

View solution in original post

Replies 10 (10)

BSSCommerce-B2B
Shopify Partner
1722 513 576

@shilpa_etsy,

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid

Step 3: Add this code before </body>

<style>
.product__title h1{
  font-family: "Josefin Sans", sans-serif!important;
}
</style>

Result:

BSSCommerceB2B_0-1726405336140.png

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

shilpa_etsy
Shopify Partner
37 0 4

can i use that var-- font-body- thing ??

BSSCommerce-B2B
Shopify Partner
1722 513 576

This is an accepted solution.

@shilpa_etsy, yes you can use

<style>
.product__title h1{
  font-family: var(--font-body-family)!important;
}
</style>

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

shilpa_etsy
Shopify Partner
37 0 4

Still same 😞

shilpa_etsy
Shopify Partner
37 0 4

please help

BSSCommerce-B2B
Shopify Partner
1722 513 576

@shilpa_etsy , I see your product title font is changed 

BSSCommerceB2B_0-1726407506008.png

Did you refresh your site?

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

shilpa_etsy
Shopify Partner
37 0 4

not changed on homepage, in featured collection section

BSSCommerce-B2B
Shopify Partner
1722 513 576

Ok, so change the previous code like this

 

<style>
.product__title h1,
.card__information .card__heading a {
  font-family: var(--font-body-family)!important;
}
</style>

 

BSSCommerceB2B_0-1726407843318.png

Please let me know if there's anywhere you'd like to make changes

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

shilpa_etsy
Shopify Partner
37 0 4

Thank you soo much!!

BSS-TekLabs
Shopify Partner
2350 701 826

- Here is the solution for you @shilpa_etsy 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
.product__title h1 {
    font-family: 'Josefin Sans' !important;
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1726405694288.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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