We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Changing to custom font within image-with-text section (Sense theme)

Changing to custom font within image-with-text section (Sense theme)

LHNZ
New Member
4 0 0

Hi all,

 

I am working within the Sense theme. I have added a custom font (mushin) and deployed it - it works well. However, it only works on my theme in css sections. I want to add an image-with-text section and have the heading (h2 specifically) to be in my mushin font.

 

Any ideas?

 

I have tried duplicating the image-with-text.liquid and image-with-text.css and adding the same code that worked for me in my base.css. That didn't work.

I then tried the below in my base.css (also didn't work):

 

.custom-image-with-text {
font-family: mushin;
}

 

Any ideas are appreciated!

 

Replies 5 (5)

DitalTek
Shopify Partner
892 103 122

Hi,

If it worked in one section, but when you added another, it's not working, so the issue can be that you cannot access the element you want. To set the style of an element, you need to define it exactly.

In this case you can try this:

 

.custom-image-with-text h2 {
   font-family: mushin;
}

 

to easy for check, you can share the store's url here and point to part you want to check like that community can easely to help.

- You can please Like and Accepted Solution if my suggestion helpful.
- And you want to hire developer Theme or App Shopify => Feel free to send me a DM or contact to us via Email | WhatsApp
- Website: ditaltek.com
LHNZ
New Member
4 0 0

Thanks for replying! It didn't work...my store is currently password protected, but I can send you the link?

DitalTek
Shopify Partner
892 103 122

yes it's ok, if so It will easy for to check.

- You can please Like and Accepted Solution if my suggestion helpful.
- And you want to hire developer Theme or App Shopify => Feel free to send me a DM or contact to us via Email | WhatsApp
- Website: ditaltek.com
LHNZ
New Member
4 0 0

Thank you! I have emailed you

DitalTek
Shopify Partner
892 103 122

Hi @LHNZ ,

I was checked your site and not found the font "mushin" exists in site. I don't know what way do you add to font, but as like you add not success.

So when you style for text it not affect.

JosephK_0-1696227150792.png

 

- You can please Like and Accepted Solution if my suggestion helpful.
- And you want to hire developer Theme or App Shopify => Feel free to send me a DM or contact to us via Email | WhatsApp
- Website: ditaltek.com