How to gracefully disable or remove AMP Pages from WordPress Site

Introduction This tutorial will show you how to disable or remove AMP gracefully from your WordPress site or blog. AMP is an acronym and stands for Accelerated Mobile Page. AMP is an initiative to create web pages that load quickly on the mobile devices. It consists of a modified version of HTML called AMP HTML, a JavaScript library called AMP JS and a caching library. The AMP project is open source and was originally developed by Google.

Continue

How to use CSS in WordPress Plugin

Introduction We will discuss here how to use CSS in WordPress plugin. We will use the same plugin we created in the example. We have seen how to use AJAX, jQuery in our previous tutorial. This example will also show you how to en-queue CSS file. Till now our simple email subscription form does the necessary things what it required. But in this example we will apply some style to make it look more better. The basic idea of this post is to show you how to use CSS (Cascading Style Sheet) in…

Continue

How to use AJAX, jQuery in WordPress Plugin

Introduction We will discuss here how to use AJAX in WordPress plugin. We will use the same plugin we created in the example. We have seen how to create MySQL table in our previous tutorial. This example will also show you how to en-queue JavaScript files. Till now our simple email subscription form could not perform any action but in this example we will use AJAX technique with jQuery so that users will be allowed to subscribe to the posts.

Continue

How to create table with WordPress Plugin

Introduction In this post we will discuss about how to create table with WordPress plugin. When you are writing a plugin for WordPress (a simple email subscription form), you will find that you need to store some information in the WordPress database. Certainly there are ways to store information and you can find more on this here but we will see here in simple way how to create a table and store information into database.

Continue

How to create plugin in WordPress

Introduction In this post we are going to discuss how to create plugin in WordPress CMS (Content Management System). Creating custom WordPress plugin is simple and you just need to follow some steps to make it available in your WordPress site. We will create a simple email subscription form through which users will be able to subscribe to your recent posts. We will also discuss why do you need to create your own plugin in the next section. Why do you need plugins? WordPress plugin allows you to modify, customize…

Continue

Create Popular Posts Widget in WordPress without Plugin

Introduction This post will show you how to create popular posts widget in WordPress without plugin. There are number of plugins available for displaying popular posts in your wordpress website but here I will show you how to create widget in WordPress, where you will display most popular posts by comments count on posts. The style for the widget will inherit from your site’s theme style. This tutorial will assume that you have basic knowledge on WordPress and PHP coding.

Continue

Move http to https on WordPress

Introduction In this article, you will see how to add SSL and HTTPS in WordPress website. It is recommended these days to move HTTP to HTTPS on WordPress is an important thing because most of in our websites we share sensitive data like credit card and bank information or login credentials dozens of times per day. As a website owner it is your duty to keep the information safe when users making online transactions for purchasing something using debit card, credit card or netbanking or they simply logging in to…

Continue

Remove version from css & js files in WordPress

In this post I will show how you can remove version from CSS & JS files in WordPress. Almost all css and js files in the WordPress have the WordPress version number appended after the file names or using a query string. Having query string with the URL browser does not cache the file because the file is treated as dynamic file. Why version is appended to css and js files? Let’s say you are developing or updating a site and want to present it to your clients. But clients’…

Continue