Hi, how can I add custom font to the theme, please?
I purchased a custom font and added the files to my child theme folder/fonts directory.
In my style.css I @font-faced all of the different files.
Now I want to add it to my website.
I added font-family to h1 in my style.css, but nothing happened.
Thank you for contacting us.
Please give us your site URL, admin account. We will help you check the custom CSS to add the custom font.
We have checked and added a new font face for your H1 heading tag by using !important attribute for that custom CSS.
You can overwrite the CSS by adding the !important attribute.
Is the theme still being worked on and updated? Can I make a suggestion? Could you make it so, that the changes made to child theme style.css always take precedence over the default styles? That would make all the changes easier and make your theme more customizable. Thank you.
Don't worry about that. For the child theme, it doesn't lose when updating the theme. You also can add the custom CSS via theme options/ custom CSS tab.
Sure, it won't be deleted for child theme, but I have to include !important attributes and those are a bad practice and it would be better if those could be avoided. Maybe just try to load child theme style.css as the latest stylesheet?
We have checked and removed the !important attribute on the style.css file. We also removed the font-family config at the theme options/ typography to help you fix that issue.
Please check it again.
You must be logged in and have valid license to reply to this topic.