I hope you are doing well! I have been using the Salient theme and truly appreciate its versatility and user-friendly design options. It has significantly enhanced the look and feel of my website.
I am currently looking to integrate a custom font into my site, LookMyFinance .com. While reviewing your documentation, I noticed two methods: using a plugin or adding the font programmatically. I would like to seek clarification and guidance regarding the second method (adding fonts programmatically), as I prefer using a child theme for modifications.
Could you please provide further details or examples to help implement this efficiently? Additionally, if there are best practices or potential challenges to be aware of during this process, I would be grateful if you could share them.
Thank you for your time and assistance! Looking forward to your response.
Please Find the article below already available for valid item support subscriptions:
Add custom fonts to the "Typography" section of the Salient Theme Options Panel Option #1: Use a plugin
The plugin Use Any Font will allow you to upload custom fonts via a user interface and automatically add them into the Salient options panel > Typography tab as options. This approach is the easiest approach.
Option #2: Add font programmatically
If you would rather add new fonts via custom WordPress filters/font-face rules, there are several options.
Add PHP Code using Code Snippets Plugin for the Salient Theme Options -> Typography Section Fields.
function salient_redux_custom_fonts() {
return array(
'Custom Fonts' => array(
'Proxima Nova Light' => 'Proxima Nova Light',
'Proxima Nova LightIt' => 'Proxima Nova LightIt',
'Proxima Nova Regular' => 'Proxima Nova Regular',
'Proxima Nova RegularIt' => 'Proxima Nova RegularIt',
'Proxima Nova Semibold' => 'Proxima Nova Semibold',
'Proxima Nova SemiboldIt' => 'Proxima Nova SemiboldIt',
'Proxima Nova Bold' => 'Proxima Nova Bold',
'Proxima Nova BoldIt' => 'Proxima Nova BoldIt'
)
);
}
add_filter( "redux/salient_redux/field/typography/custom_fonts", "salient_redux_custom_fonts" );
Conclusion:
You should be able to now select the Custom Fonts from the Typography Section in the Salient Theme Options.
Hello Team,
I hope you are doing well! I have been using the Salient theme and truly appreciate its versatility and user-friendly design options. It has significantly enhanced the look and feel of my website.
I am currently looking to integrate a custom font into my site, LookMyFinance .com. While reviewing your documentation, I noticed two methods: using a plugin or adding the font programmatically. I would like to seek clarification and guidance regarding the second method (adding fonts programmatically), as I prefer using a child theme for modifications.
Could you please provide further details or examples to help implement this efficiently? Additionally, if there are best practices or potential challenges to be aware of during this process, I would be grateful if you could share them.
Thank you for your time and assistance! Looking forward to your response.
Best regards, Muhammad Faheem
I also have a same issue on my website
Please Find the article below already available for valid item support subscriptions:
Add custom fonts to the "Typography" section of the Salient Theme Options Panel Option #1: Use a plugin
The plugin Use Any Font will allow you to upload custom fonts via a user interface and automatically add them into the Salient options panel > Typography tab as options. This approach is the easiest approach.
Option #2: Add font programmatically
If you would rather add new fonts via custom WordPress filters/font-face rules, there are several options.
- The Below example uses the @font-face method and the fonts are included in a Child Theme.
Step 1:
@font-face CSS methods are included in the Salient Theme Options Panel -> General Settings -> Custom CSS Box to import the relevant font files.
Step 2:
Add PHP Code using Code Snippets Plugin for the Salient Theme Options -> Typography Section Fields.
Conclusion:
You should be able to now select the Custom Fonts from the Typography Section in the Salient Theme Options.
Adds Salient compatibility to https://wordpress.org/plugins/custom-typekit-fonts/ plugin
Add PHP Code using Code Snippets Plugin
Best,
ThemeNectar Support Team