How to load plugin after page is loaded – pagespeed issues

I’d reach out directly to that plugin developer to relate your concerns, and if they’re not responsive consider a different plugin. But in the meantime, you can use wp_dequeue_script() and wp_dequeue_style() and their counterparts wp_enqueue_script/style to remove the stuff that’s slowing down your site. This answer has more detail on how to move scripts from … Read more

Default font in 2012?

Easest way without investing too much effort and not worrying about coding ethics (like clean code and so on) you could simply use the “Customizer”. In your frontend, click on the “Customizer” in the upper left corner in the admin bar. Then, scroll/go to the “Additional CSS” section and add body { font-family: yourFontFamily!important; } … Read more

Remove Font-Awesome MaxCDN Link & Load Locally

You must find the name of the enqueued stylesheet in your theme and use it to dequeue a style – wp_dequeue_style. URL is unnecessary. Example: function remove_unwanted_css() { wp_dequeue_style( ‘font-awesome’ ); } add_action( ‘wp_print_styles’, ‘remove_unwanted_css’, 100 ); Or another solution wp_deregister_style/: add_action( ‘wp_enqueue_scripts’, ‘remove_default_stylesheet’, 20 ); function remove_default_stylesheet() { wp_dequeue_style( ‘font-awesome’ ); wp_deregister_style( ‘font-awesome’ ); … Read more

How to stop the Divi theme from loading Google fonts [closed]

wp_dequeue_style() should help you. You should dequeue style and enqueue your fonts. wp_dequeue_style(‘et-core-main-fonts’); wp_enqueue_style(‘your_fonts_handle’, ‘path_to_your_fonts’); Or redeclare function with your fonts. et_core_load_main_fonts() { $fonts_url = et_core_get_main_fonts(); if ( empty( $fonts_url ) ) { return; } wp_enqueue_style( ‘et-core-main-fonts’, esc_url_raw( ‘path_to_your_style’ ), array(), null ); }

How can I allow upload of ttf or otf font files when hooking `upload_mimes` doesn’t work

This is an imperfect solution which forces the way WordPress detects TTF files to use the file extension and then hooks upload_mimes for exactly our specified MIME type. Part of this answer taken from https://diviengine.com/how-to-fix-sorry-this-file-type-is-not-permitted-for-security-reasons/ First massage the way WordPress detects/reports TTF file types: function divi_engine_font_correct_filetypes( $data, $file, $filename, $mimes, $real_mime ) { if ( … Read more

How to set different font family based on text language?

This question is not about WordPress but about css. Actually there even is a straightforward solution, because css-3 has an attribute called unicode-range, which allows you to load fonts based on the character set. For Tamil the unicode block is U+0B02..U+0BCD. So, if you have the english font as a standard you can easily change … Read more