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 enable video lightbox button on Sydney WordPress theme’s full screen slider?

Sydney Slide Button Lightbox plugin allows you to enable lightbox effect on the main slider (Full screen slider) button of Sydney WordPress theme to play a video file (self-hosted or YouTube, Vimeo, etc.).

To enable YouTube video lightbox on the slide button of Sydney theme’s Full screen slider, follow these steps:

  1. Download the .zip package of this plugin
  2. Install to your WordPress website’s which is running Sydney theme via the Plugins menu > Add New > Upload
  3. Activate plugin
  4. Specify your video URL (e.g.: https://www.youtube.com/watch?v=668nUCeBHyY) to Customize > Header area > Header Slider > URL for your call to action button. You can use any video URL from YouTube, Vimeo, and other video sharing services, or even a self-hosted video file from your WordPress website’s media library.
  5. Update/Publish
Continue reading How to enable video lightbox button on Sydney WordPress theme’s full screen slider?
Posted on Leave a comment

How to display Instagram feed when my WordPress website is in maintenance mode?

Enable Maintenance Page plugin allows you to choose a page content to display when a WordPress website is set in maintenance mode. By this core feature, you can insert any type of blocks and put them in preferred order. For example, you can display photos or videos from your Instagram feed, that will give an option for visitors to connect and keep updated with your business via Instagram posts. This will surely help maintaining conversation while your website is not online.

Continue reading How to display Instagram feed when my WordPress website is in maintenance mode?
Posted on Leave a comment

Maintenance mode with minimal settings for WordPress

Enable Maintenance Page is a plugin that allows you to quickly switch a WordPress website readability to a maintenance mode for visitors and display content from a specific page for all public links.

This plugin offers minimal settings, that can be accessed from left site admin menu: Settings > Reading > Enable Maintenance Page.

The content to display during maintenance mode can be choosen from existing pages or the new one. This option allows full control of the information to ready by visitors when they can’t see your actual website pages. It is a good option when your site has block editor enabled. So that you can choose preferred essentials blocks like heading, paragraph, button, embed social profile, etc. You can also add extra blocks from additional block-focused plugins like map, contact form, subscription form, etc.

Continue reading Maintenance mode with minimal settings for WordPress
Posted on Leave a comment

How to fix improper gallery image thumbnail size on WooCommerce product?

We can run WooCommerce on a WordPress site with a theme that doesn’t specifically designed for WooCommerce. And ignore the incompatibility notice in the dashboard for design preference reason.

If you know WordPress coding, a non-supported WooCommerce theme is missing add_theme_support( ‘woocommerce’ ) in its main function.

You will have some store-related problems when you use this kind of theme; for example, product image or gallery thumbnail size not properly configured. The thumbnail grid below the product images slideshow in single product page is usually broken as there is no fixed size specified.

To fix this issue while you don’t want to switch to WooCommerce supported themes, you can apply the below short snippet into your child theme’s functions or add it with the Code Snippets plugin.

Continue reading How to fix improper gallery image thumbnail size on WooCommerce product?
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?