How to remove Users from WordPress Sitemap
First check your website for the sitemap output yourWebsite/wp-sitemap.xml Now, if the users or author sitemap link shows here, simply follow these steps to remove it. Login to cpanel Open File Manager Select your website folder Open wp-includes...
Most used git commands
Git Book, Git References, Git Documentation git clone Clone a public repo git clone https://github.com/username/repo-name.git local-machine-folder-name git init Initialize or reinitialize a git repo git init git add Add / save all the changes in a...
How to configure github username and email to local environment
Open the terminal Run this command to set username git config --global user.name "yourUserNameHere" Run this command to set useremail git config --global user.email "yourEmailAddressHere" If you find this post helpful, please...
How to rename windows drive name C D E F G
If you want to change / rename the Windows Drive name Letter to another Letter, you can follow this simple solution Right click on Start menu Click on Disk Management Right click on the disk you want to rename Click on Change Drive Letter and...
How to update object state with react useState()
To update a state in React is a very simple process using react hooks - useState. Check the code below: Update simple state // import useState hook import React, {useState} from 'react'; //create and export the component export default...
How to run useEffect() only once | React Hooks
Just add an empty array after the callback function separated by a comma useEffect(callback, []); useEffect(()=>{}, []); And if you get any warning for missing dependency, add that inside the array useEffect(()=>{ // your code here },...
How to deploy React App to github pages | gh-pages
Make an empty repo on github (no file) Install your react app using this command npx create-react-app yourprojectname Go to your project cd yourprojectname Intall gh-pages npm install gh-pages Add a homepage to package.json...
Get started with Create React App
Create a react app with Zero build configuration on your local machine. Please ensure that you have Nodejs installed on your machine Step 1: Open your terminial run this command npx create-react-app my-app This will install all the necessary codes...
Basic HTML (tutorial for the beginners)
Learn HTML. Anyone who wants to learn to build websites, learning HTML is a must. A single HTML web page has mainly some essential parts- html, head, body. Here is a basic formation of HTML pages to understand at the starting level…
How to fix error nodemon ps1 cannot be loaded because running scripts is disabled
A solution for running nodemon on local machine error on Windows :
1. Open Windows PowerShell with Run as Administrator
2. Run this command: Set-ExecutionPolicy Unrestricted
Problem solved. Click on the link to see explanation…