How i can use font in wordpress?

On WordPress, all paragraphs look the same. But it is also true that on WordPress, you can change everything. So there are a few solutions but you will need a little development. Personally, I would use Flexible Content fields of the ACF plugin. Hoping I could help you.

How to add custom fonts in WordPress site

This is the fontsquirrel config data. save as generator_config.txt and upload with your font file. select expert mode. # Font Squirrel Font-face Generator Configuration File # Upload this file to the generator to recreate the settings # you used to create these fonts. {“mode”:”expert”,”formats”:[“ttf”],”tt_instructor”:”ttfautohint”,”fix_gasp”:”xy”,”fix_vertical_metrics”:”Y”,”metrics_ascent”:””,”metrics_descent”:””,”metrics_linegap”:””,”add_spaces”:”Y”,”add_hyphens”:”Y”,”fallback”:”none”,”fallback_custom”:”100″,”webonly”:”Y”,”options_subset”:”basic”,”subset_range”:[“lowercase”,”uppercase”,”currency”,”malagasy”,”turkish”],”subset_custom”:””,”subset_custom_range”:””,”subset_ot_features”:”all”,”subset_ot_features_list”:””,”base64″:”Y”,”style_link”:”Y”,”css_stylesheet”:”stylesheet.css”,”filename_suffix”:””,”emsquare”:”2048″,”spacing_adjustment”:”0″,”rememberme”:”Y”}

@font-face doesn’t work

This article has some very helpful information regarding @font-face, and compatibility issues … just in case. Here are some potential improvements in your @font-face section: One of your src entries lists “local”. Try removing that. Try using explicit addressing for your files. Make sure you can actually open your font files, or at least do … Read more

Enqueue custom font file with rel=”preload”

You could try using the style_loader_tag filter. add_action(‘wp_enqueue_scripts’, ‘my_enqueue_scripts’); function my_enqueue_scripts() { wp_enqueue_style(‘my-style-handle’, “https://wordpress.stackexchange.com/fonts/custom-font-folder/CustomFontFile.woff2”, array(), null); } add_filter(‘style_loader_tag’, ‘my_style_loader_tag_filter’, 10, 2); function my_style_loader_tag_filter($html, $handle) { if ($handle === ‘my-style-handle’) { return str_replace(“rel=”stylesheet””, “rel=”preload” as=”font” type=”font/woff2″ crossorigin=’anonymous'”, $html); } return $html; } Here we’re enqueuing the stylesheet using the normal wp_enqueue_style function. We then capture the … Read more

Changing code font size on wordpress

Your element seems to be part of the page therefore custom CSS should work. Most probably it is not working as the CSS rules of another stylesheet (probably the WordPress.com default) are stronger or more specific. Try with the CSS !important rule: If this still does not work use more specific CSS selectors with the … Read more