How to Remove Width and Height Attributes From Images in WordPress

| Last Updated: | In: Code Snippets, WordPress Snippets


In this tutorial, I will explain how to remove width and height attributes from inserted images in WordPress posts and pages. The images uploaded through the WordPress media uploader and inserted in your posts or pages it automatically added the width and height attributes in your image. How to Remove Width and Height Attributes From …

Always Force to Redirect HTTPS URL

| Last Updated: | In: Code Snippets


If you have recently moved your website to HTTPS from HTTP and facing the mixed content issues, or some of your site URLs are still redirected to HTTP, then you can use the below code snippets in your .htacess file. Always Force to Redirect HTTPS URL This htacess code will always force to redirect HTTPS …

Get URL Variables Using JavaScript

| Last Updated: | In: Code Snippets


This tutorial will explain how to get URL variables using JavaScript. This will help you when you want to do some operation based on the URL variables. Get URL Variables Using JavaScript Use the below JavaScript code to print the URL variable. You can use the getQueryVariable() function in your JavaScript to get the variable …

How to Use PHP Code inside HTML

| Last Updated: | In: Code Snippets, HTML / CSS


Are you want to use the PHP code inside HTML code, if your answer is “YES”, then this tutorial is designed for you. Keep your close eye on this tutorial as Ima going to share how to use PHP code inside HTML by using the simple htacess code snippets. How to Use PHP Code inside …

How to Prevent Your Site From Image Hotlinking

| Last Updated: | In: Code Snippets


In this tutorial, I will explain how to prevent your site from image hotlinking. This will help you to save your server bandwidth and cost. What is Image Hotlnking Image hotlink is the direct linking to your website’s image files to theft your server Bandwidth. Some people have used your site’s images directly on his …

How to Set Custom Error Pages Using Htacess

| Last Updated: | In: Code Snippets


If you want to design the custom error page for the server side error like 400, 401, 500, 502, and etc…, then keep your close attention in this as I am going to explain how to set custom error pages using Htacess file. Open your htacess file from root directory of your website and copy …

C++ Program to Get The List of Files From Given Directory

| Last Updated: | In: C++ Tutorial


Today, I am going to write a c++ program which will print the list of files from the given directory. I have used the opendir() function to open the given directory and readdir() function to read the directory. readdir() function read the given directory and display the lists of all files inside that directory. c++ …

WooCommerce Remove My Account menu from Dashboard

| Last Updated: | In: WordPress Snippets


Sometimes we need to customize my account menu on the dashboard in WooCommerce. In this tutorial, I will share a simple WordPress filters which allow you to remove the unused menus from the dashboard as per your requirement. See the below screenshot before applying the filters. How to WooCommerce Remove My Account menu from Dashboard …

How to Disable Search Feature in WordPress

| Last Updated: | In: WordPress Snippets


Are you developing a WordPress website in which you don’t want to have the search features or don’t want to allow your website visitor’s to search anything on your website, then this tutorial is designed for you, keep your close attention in this post as I am going to share how to disable search features …

Change the Default Gravatar in WordPress

| Last Updated: | In: WordPress Snippets


By default, WordPress comes with some basic default user avatar is named “Mystery Person”. In this tutorial, I will explain how to change the default gravatar in WordPress. If you want to add your brand to default user gravatar for the newly registered user in your website, then keep your close your attention in this …