Remove file version strings from CSS and JS links
By default .css and .js files used in WordPress themes and plugins will add a version number using ?ver= To disable this add the following inside your theme functions.php file or as a new plugin:
By default .css and .js files used in WordPress themes and plugins will add a version number using ?ver= To disable this add the following inside your theme functions.php file or as a new plugin:
Here is a simple code snippet that you can add to your theme functions.php file to show the “last updated” date in your posts. A new line will be added to the beginning of the post content if the last modified and published time is different:
Missing a temporary folder. WordPress error can be caused for multiple reasons: How to fix this error: 1. Enable required extensions Check if required extensions are enabled in Tools > Site Health: If they are not, enable them from cPanel > PHP Selector 2. Check wp-config.php for WP_TEMP_DIR Check if a custom path for file … Read full article →
If you’ve installed your WordPress installation via Softaculous or Installatron, you can set backups directly in the WordPress management screen. Step 1. Simply login to your cPanel and scroll down to web applications section. Step 2. Choose the installation that you want to set backups for and click on the backup button, as shown in the screenshot … Read full article →
wp-admin/plugins.php displays the plugins list table using the array $plugins_all which contains information on all installed plugins. We can use pre_current_active_plugins hook to perform actions before the plugin information is displayed on this page. TIP: The best way to understand what a hook does is to look at where it occurs in the source code. … Read full article →
If you have manually installed one of the supported Installatron applications, you can easily import the application through Installatron to take advantage of all the features that Installatron offers. The steps when importing into Installatron are the same for all applications, so we will use the example of importing a WordPress application for this article. … Read full article →
On his blog Konstantin Shestopalov recently shared How to disable Cyrillic or Latin characters at checkout in Woocommerce with the following example to disable Latin characters on the checkout page: While the code does not actually disable Cyrillic characters, it simply checks if the letters are in Latin, and if not, prints an error message … Read full article →
To display the number of total views for all posts inside a WordPress category the simplest solution is to count the page views of each post, and then call the post views on the category page. Open the functions.php file of the current template and add the following code: And to display the number of … Read full article →
WordPress has an HTML meta generation tag that shows that your website is running WordPress and which version exactly. If you right-click on this page and choose View Source, you can find this tag by searching for “generator” in the source code. You should see something similar to: <meta name=”generator” content=”WordPress 6.0.3″ /> This code … Read full article →
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: