How to Add Custom CSS Code to WordPress - How to Add Custom CSS Code to WordPress

How to Add Custom CSS Code to WordPress

Although you can change almost every aspect of WordPress themes, to design your site exactly how you want it, you may occasionally need to add some custom CSS. In WordPress 4.7, a new way to add CSS to your site was added inside the Customizer which you can find in Customize > Additional CSS. However, CSS … Read full article →

WordPress Backup Plugins Benchmark - WordPress Backup Plugins Benchmark

WordPress Backup Plugins Benchmark

I’ve tested the most used WordPress backup plugins and compared their compression level and backup&restore speed. The website on which I performed the tests is a WP blog (pcx3.com) that has 2.7 GB in files and database size is 130.8 MB Tested plugins: New plugins might be added later on. 🙂 Spoiler alert – the … Read full article →

How to send AJAX requests in a WordPress theme or plugin - How to send AJAX requests in a WordPress theme or plugins

How to send AJAX requests in a WordPress theme or plugins

AJAX enables tasks such as fetching, inserting and deleting records from a MySQL database, as well as file uploading. AJAX sent URL should be admin-ajax.php. wp_ajax action hooks. Here are well-explained tutorials from Yogesh Singh on how to send AJAX requests from a WordPress theme and a WordPress plugin:

wp gatsby netlify - WordPress to Gatsby on netlify ☄️

WordPress to Gatsby on netlify ☄️

When migrating from WordPress CMS to another CMS there are a couple of ways to easily export all your posts and media files: In this guide we will be using the WPGraphQL plugin and Netlify to deploy a Gatsby website. Step 1. Fork the gatsbyjs/gatsby-starter-wordpress-blog repo on Github Step 2. Edit the gatsby-config.js file and … Read full article →

curl error 60 - How to fix curl error 60: SSL certificate problem: certificate has expired error ✅

How to fix curl error 60: SSL certificate problem: certificate has expired error ✅

From September 30, 2021, WordPress websites that use Let’s Encrypt certificates are having issues with HTTP API requests. For example, here is an example that will cause this error: $res = wp_remote_get( ‘https://abcdef.com/’ ); if( is_wp_error( $res ) ){ echo $res->get_error_message(); } the error message: cURL error 60: SSL certificate problem: certificate has expired What causes this error? … Read full article →

New Ways to Change active WordPress theme - Different Ways to Change active WordPress theme

Different Ways to Change active WordPress theme

Here are a few ways you can change the active theme in WordPress: Using WP Dashboard Using the WordPress Administration Screens: You can change the active theme by going to the “Appearance” -> “Themes” page in the WordPress Administration Screens and selecting a new theme. Using functions.php or a custom plugin Using the wp_set_theme function: … Read full article →

Installation failed Could not create directory. WPXSS blog - Installation failed: Could not create directory.

Installation failed: Could not create directory.

When installing new plugins the error is displayed: Installation failed: Could not create directory. How to fix the Installation failed: Could not create directory. error OPTION 1: Change File permissions This error usually occurs because WordPress doesn’t have writing permissions for the folder. To make sure this is the case, navigate to Tools > Site … Read full article →

Building a simple WordPress shortcode to output Website information - Building a simple WordPress shortcode to output Website information

Building a simple WordPress shortcode to output Website information

Here is a simple WordPress plugin that uses the [site] shortcode to display the website name: It uses the get_bloginfo() function to retrieve website information, and do_shortcode() function to display the information in the WordPress post or page. We can use get_bloginfo() function to also display additional information such as URL, WordPress version, etc. Here … Read full article →