Shopify themes, liquid, logos, and UX
I'd like to add a custom font to the following sections of my website:
I followed this tutorial and all the text turned into the custom font. I tried removing parts of the code (h2,h3,h4,h5,h6,html,body) and left H1 but all text still uses the custom font.
The rest of the text should be Shopify's system font serif. Please see the store URL and password below:
https://souvenir-the-store.myshopify.com
cookiebutter
I'd really appreciate your help! Thank you.
Solved! Go to the solution
This is an accepted solution.
Always take a backup of theme before making any changes.
1. Go to your code editor > Assets > base.css and paste this lines at the bottom of the page:
h1.product__title, .list-menu {
font-family: "Love" !important
}
a.header__menu-item {
font-size: 16px;
}
Also please check where you have added this >> https://prnt.sc/228zq4j and replace the font-family value with 'var(--font-heading-family)' >> https://prnt.sc/228zsih
You can adjust the font-size by increasing or decreasing the px value.
If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on shopify.dev.34@gmail.com | Shopify Design Changes | Custom Modifications In to Shopify Theme
This is an accepted solution.
you can add this:
.page-title, .header__menu-item span {
font-family: "Love" !important;
}
Sorry you are facing this issue, it would be my pleasure to help you.
but now your store password protect
Hi, thanks for reaching out. The password is cookiebutter
Hi, alternatively is there a way to use my custom font for the "image with text" section? I'm looking to use it for the main text as seen in this image, while keeping serif for the description.
Add this
h2.image-with-text__heading.h1 {
font-family: 'Love' !important;
}
If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on shopify.dev.34@gmail.com | Shopify Design Changes | Custom Modifications In to Shopify Theme
That was quick! Thank you so much.
Lastly, is there a way to use the custom font for collection titles?
The code you gave worked on the page titles like About Us, Contact, FAQ, etc. I hope to use the font for collection titles as well!
Add this:
Hi,
I know this is an older topic but I couldn't make it work on my main menu.
Could you please help me if you're around?:)
Thnx a lot!
This is an accepted solution.
Always take a backup of theme before making any changes.
1. Go to your code editor > Assets > base.css and paste this lines at the bottom of the page:
h1.product__title, .list-menu {
font-family: "Love" !important
}
a.header__menu-item {
font-size: 16px;
}
Also please check where you have added this >> https://prnt.sc/228zq4j and replace the font-family value with 'var(--font-heading-family)' >> https://prnt.sc/228zsih
You can adjust the font-size by increasing or decreasing the px value.
If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on shopify.dev.34@gmail.com | Shopify Design Changes | Custom Modifications In to Shopify Theme
Thanks for this! The custom font is now on the product title (in the product page). Is there a way to use the font for the page titles and navigation text (New, Shop, About)?
This is an accepted solution.
you can add this:
.page-title, .header__menu-item span {
font-family: "Love" !important;
}
Thank you so much! This worked perfectly.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024