Posted on Leave a comment

How to put back missing Google Fonts I choose from my WordPress website?

Modern WordPress themes usually allow us to choose Google font from a list of available Google Fonts directly from customizer or theme/plugin’s settings panel. However, there is a possibility the selected fonts are no longer working due to version update or any other reason.

You can use this snippet to manualy call your chosen fonts from Google Fonts service from your website directly. Add it into child theme’s functions or use Code Snippets plugin if you don’t have an active child theme.

add_action('wp_head', function(){
  ?>
  <style>
    @import url('YOUR_GOOGLE_FONT_URL');
  </style> 
  <?php 
}, 3, 0);

Replace YOUR_GOOGLE_FONT_URL with a URL given by Google Fonts after you selected a font.

Posted on Leave a comment

How to recover a WordPress website from “Fatal error: Uncaught Error: Call to undefined function”?

The common reasons that cause you to “Fatal error: Uncaught Error: Call to undefined function” are:

  • The host doesn’t meet these requirements.
  • PHP function not found in the current version of the WordPress.
  • PHP function not found in the theme, plugin, or third-party script where the referenced file depends to.

You can’t access the site’s dashboard (/wp-admin) when this error presents on your screen.

I don’t recommend you to update the WordPress version because the basic installation of WordPress with default theme and plugins free won’t produce this error if your host meets these requirements. Updating WordPrsss should always be the last option for this case.

Continue reading How to recover a WordPress website from “Fatal error: Uncaught Error: Call to undefined function”?
Posted on Leave a comment

How to troubleshoot a WordPress website in a secure way?

A complex WordPress website may embody several plugins and a non-default theme. Plugin provides limitless possibilities to extend basic feature of a WordPress site to become a more complex CMS for a specific purpose like online store, learning management system, job board, property listing, etc., or adding components like contact form, gallery slider, WhatsApp button, mobile menu, etc. Where the theme supports the look and feel and in some cases it is built exclusively for a specific need like an online store.

Having a lot of plugins and a special theme is not a bad idea as long as we can maintain the website error-free. To ensure they are not breaking our site, the easiest way is to check their compatibility with the current version of the WordPress running on our site. However, you may not get them really compatible for certain circumstances in your configurations. And the developers behind them may not be aware of it.

The quicker way to find out whether there is a plugin or theme breaking your site is by temporarily disabling all plugins at once and switching theme to one of default WordPress themes; then re-enabling plugins one by one to narrow down the source of the problem. However, this will change your site as well and surely will harm your visitors.

Continue reading How to troubleshoot a WordPress website in a secure way?