How to insert any HTML & JavaScript code in WordPress Header?

Adding an HTML verification code in WordPress Website Header or Footer – Do you know how to add AdSense verification code in a WordPress Website? In the same way whenever you have to add any type of verification or other HTML and JavaScript code on your WordPress header or footer then you can use plugins like “insert headers and footers” and “ad inserter”.

These plugins are very helpful. You can easily ad any javascript or HTML code to your website header i.e <head> …</head> or footer <body../body> using this. Like Google Console verification Code, Yandex webmaster verification, Propeller ads verification, Mailchimp code any much more

If you need any help in SEO, WordPress, AdSense, Admob, YouTube then get back to me. my contact details are given below.

Step by Step WordPress installation in Godaddy – https://okeyravi.com/how-to-create-a-wordpress-website-with-godaddy/

Here are some websites which I recommend for Hosting, Domain, and SSL. Most of them provide SSL for free.

InterServer (Everything unlimited)- https://www.interserver.net/r/463420
BlueHost – https://okeyravi.com/recommends/bluehost/
NameCheap – https://okeyravi.com/recommends/namecheap/
GoDaddy – https://okeyravi.com/recommends/wordpress/

My plans for this Ok Ravi channel –

Full Blogging tutorial Online By Okey Ravi. If you are a beginner and want to earn money online, Then you are at right place. I will teach You. How to make Money from blogging? How to money from Affiliate marketing? How to create your own website? How to do SEO? How to do drop shipping? and much more cool and amazing pieces of stuff here.

Full Blogging Course Online Contents –

  1. Starting a blog/website Step by Step with WordPress
  2. Website design and Customization
  3. How to write a blog post?
  4. Complete SEO (Basic and Advanced both)
  5. Backlinks building tactics
  6. Make Money With Blog (using Ad networks Like AdSense and Affiliate marketing)
  7. Ranking of Website ( Guaranteed Alexa ranking Under 1 lakh in 1 month)
  8. Affiliate marketing and Digital marketing tips and Tricks and many more…..awesome things.

WordPress customization includes

  1. Site identity (Logo, tagline)
  2. Menu Arrangement (Header, Footer, Social)
  3. Adding A page to Primary Menu Bar
  4. Adding categories to Menu Bar
  5. Adding Links to the Menu bar
  6. Submenu creation
  7. Page arrangements (With sidebar, Full Width, Content centered)
  8. Sidebar Customization (Right, Left and Header sidebar)
  9. How to add AdSense ads On Website?
  10. Footer Customization (Upper and Lower footer)
  11. How to Create A category?
  12. How To Add Random button and Search Button in the Menu Bar?

Search Engine Optimization –

  1. On-page
  2. Off-page
  3. Advanced SEO (Schema, breadcrumbs and more)
  4. Image SEO
  5. YouTube Video SEO and much more

Affiliate Marketing –

  1. Flipkart Affiliate
  2. Amazon Affiliate Marketing
  3. Hosting/VPN and Other Affiliate marketing
  4. Drop-shipping with WordPress
  5. Drop-shipping with Shopify

I just need your support to do all the above things. I will try to make these all video one by one. So, keep sharing and keep loving and keep supporting me.

Join my Facebook Group (Digital marketing Hacks) – https://www.facebook.com/groups/1303429619705657/

Need Help | Contact me here –

WhatsApp – https://api.whatsapp.com/send?phone=916201083671
Facebook – https://www.facebook.com/okayravi
Instagram – https://www.instagram.com/okeyravi/
Twitter – https://twitter.com/OkeyRavi
Pinterest – https://www.pinterest.com/okeyravi/

How to install a large theme on WordPress using cPanel?

Do you have any idea about how can you install a large theme on WordPress? When you install a big size theme on WordPress, you might face errors like “inactivity timeout”, “not able to upload theme file” or might be some PHP initialization error.

So, the question comes now. If the normal way of uploading and activating themes and plugins are not working then what are the other ways? The easiest and fastest way to install a large theme and plugin in WordPress is uploading that file in the file manager. You can take help from the cPanel file manager to upload those files in relevant directories.

The other solution is the FTP (File Transfer Protocol). You can use Filezilla for this. I will describe it later in another article.

Let’s see this step by step.

Installing a large theme in WordPress using cPanel File Manager

Many of the hosting providers made a limitations on how bigger theme and plugins can be uploaded. They generally reduce the php memory limit. If you want to install a large theme then you need to talk them for increasing the php memory limit.

The fastest way to install and activate large plugins and themes is to use cPanel and let the server unzip the theme and plugins locally in their respective directories. Some themes and plugins can have several numbers of files to upload and using FTP is deadly slow in this case. Like I have seen in the case of Porto Woocommerce Theme.

Follow these steps to complete the upload and activation –

1.Log-in to your cPanel account ( Generally it is domain name followed by cPanel like https://okeyravi.com/cpanel). Just replace my domain name with your domain name. It is not applicable in case of WordPress Hosting.

2. Navigate to File Manager -> Public.html

3. Open Public.html folder. In the case of multi-website hosting, you can find your website root access by searching for the domain name.

4. Browse to your WordPress theme folder /wp-content/themes/

theme folder in cPanel
Upload and extract them in themes folder

5. Upload your theme zip file. This usually has a much larger file size limit.

6. Once the zip file is uploaded in the file manager. Select and right click on the file to extract it.

7. Once extracted, delete the zip file you uploaded.

8. Now open your WordPress dashboard (Generally domain name followed by wp-admin or login. like this – https://okeyravi.com/login or https://okeyravi.com/wp-admin/

9. Navigate to Appearance ->Themes

Theme section in WordPress

10. Your uploaded theme will be there and it is ready for activation. So, what are you waiting for? just activate it, LOL.

Adjust php.ini limits to overcome this error

If you are not able to upload and install large theme files in your WordPress then this is not a big error. You can either use the above method or just adjust Php.ini limits (Also called Php memory limits or execution limits). .

You can ask your hosting provider to fix this for you. They will adjust your php.ini limits. In my case, it is GoDaddy and InterServer.

If you decide to adjust the php.ini file do not forget to reset Apache after making the change.

Some possible php.ini settings

  • max_execution_time 600
  • memory_limit 20M
  • post_max_size 20M
  • upload_max_filesize 20M

I hope now you have understood how a large theme file can be easily be installed on WordPress. If you have any query or concern then you can comment below.

Have a good day!

Read NextHow to backup your WordPress website using ManageWP?

How to bulk delete unused tags from a WordPress website?

Bulk delete unused tags from WordPress – You know guys, deleting unused tags from WordPress website will be hectic sometimes if you don’t do it on time. But, who is taking tension of this? Do you? I don’t. We have some set of plugins which can perform this tag deletion action in a while. In this article, we will discuss both the manual and plugin deletion of unused tags on a WordPress website.

While writing a blog post and even when we perform SEO on our website, we create a lot of tags. Some of them left unused and this number will grow day by day. If you don’t delete them.

You know in the last post I have discussed how have I deleted 14k subscribers from my website? Most of them were spam subscribers. But, as a bit of luck, I don’t have any spam tags or tags created by those spam users.

So, why am I worried about unused tags? Yes, because they are very high in number. I have deleted almost 100’s of posts from my website in last 1 and half year but the tags I have created is still there. Not only these tags, while writing posts I have created a lot of tags and later I deleted them from the post edit page finding they are irrelevant to the content later. But those tags are still active in the tags directory.

How a tag becomes unused?

There might a lot of reasons for this. I am mentioning the reason which has I known and observed. If you found something else you can comment about that.

  1. Deleted posts and pages left tags behind
  2. Tags created and deleted from the post edit page, Not from the tag directory or database
  3. You type some tags and you pressed enter, means tags saved in tags directory but in the meantime you realized some spelling mistakes and deleted that tag from there. But it is still in the tags directory.

So, deleting these unused tags are very much important with respect to website SEO.

Read AlsoHow to fix “this page is not mobile friendly” google Search Error?

How to bulk delete unused tags from your website?

Mass deletion of unused tags can be performed either manually or by using some plugins. let’ see the manual process first.

Method 1 – Manual deletion of unused tags

Follow the steps provided below to delete a tag manually from tag directory.

Note: You might need to redirect an unused tag to some other URL after deletion. But, performing redirection in bulk is also not suggestable. So, better you deleted it. but it completely your choice. I have redirected some of my important tags to my main URL or the post URL because I have also submitted tags in the Google Search Console.

Here we go with the steps –

  1. Login to your WordPress dashboard
  2. Navigate to Posts->Tags
  3. Now see the count of tags. if the count is zero then that tag is not used anywhere on your website.
  4. Select tags having zero count
  5. Choose delete option in Bulk Actions
  6. Click Apply to delete them
  7. You can perform redirection according to your choice after then
bulk delete unused tags from your website
Manual deletion of unused tags

Deleted tag redirection is good for SEO

You know you can choose not to redirect your tags to another content. But, a good SEO expert will never suggest you this. There will be some situations in which you have to perform redirections. So basically, if you have any relevant post then redirect the deleted tag to them or else just redirect them to your homepage.

redirecting a deleted tag to some other content
deleted tag redirection

If your website is new or in the case you have deleted the post. better option for you will be homepage redirection or leave it blank.

Note: It may increase 404 page not found issues for some time. If you get so, submit your tag in google search console again.

There is a step where people stuck. They have asked “Sir, I don’t have count option in my tag section, how do I get that?”

The answer is very simple. Just click on “Screen options” button. You can find it in the top right corner. Now check the count option and click save.

You are done here. Smile please 🙂 Say, cheese!

Method 2 – Deleting unused tag using a plugin

As you came to know manual deletion of tags is time-consuming and need some effort as well. Which I know you don’t want to give? So, You can perform this deletion process within minutes using some plugins. Let’s see how it goes?

Mass deletion of unused tags using plugin

There are very few numbers of plugins available for tags deletion. the plugin which I am going to use right now is ‘Mass delete unused tags’

I will not recommend this plugin now. it is not tested with current version of WordPress. But still, if you wanna use it then follow these steps properly.

  1. Create a complete backup of your website
  2. Now download and install the Mass delete plugin, you can download it from WordPress store as well.
  3. Select the ‘Yes, delete all unused terms’ option and hit the Delete Terms button.
  4. Don’t refresh your browser tab or window till all the unused tags are deleted. Mass Delete Unused Tags plugin deletes 50 tags at a time to avoid database crashes.
Mass delete Unused tags using a plugin

Delete unused tags using SQL Query

This is also a prime method used by core programmers. If you don’t have much knowledge of database then make sure to take a complete backup before trying this code.

This sql operation can be performed in phpMyAdmin.

Tag deletion Code

DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE count = 0 );
DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy);

If you liked this article, then please subscribe to our YouTube Channel. You can also find us on Twitter and join our Digital marketing hacks Facebook group.

If you have any query or suggestion feel free to comment below.

Read Next How to bulk delete WordPress user with Specific role?

How to add Menu, Submenu items | Add categories to Main Menu of WordPress Website

Hello Guys, How are you Doing? I hope You are doing great.Friends, today we will learn How to add menu Items, Submenu items and Also How to add Categories items to Main Menu on WordPress Website.

Note: Menu might be Main Menu, Top menu, Social Menu and Footer Menu.So, Prepare a weel structure of Your Website that in which Menu what things you need to add keeping In mind “Proper Navigation” of Your Website Should be maintained.

So, let’s start the process

Creating Your First Custom Navigation Menu

You can create menus in WordPress by visiting Appearance » Menus in your WordPress admin area.Just By logging in to Your WordPress Admin.

This will bring you to the Edit Menus screen which is divided into two columns. The column on your left has your pages, categories, and custom links tab. The column on the right is where you add and adjust menu items.

Now, It is totally on You, Either You can Create a Menu or You can Add Your Pages, Posts, Submissions, templates, Custom Links and categories to Your Menu.

Now as you can see In the demo website image you have three Menu Locations.

Next, you need to select the pages you want to add to the menu. You can do this by selecting the pages listed on the left-hand side and clicking on Add to Menu button.

After adding pages to the menu, select the theme location where you want to display the menu and click on the ‘Save Menu’ button

Don’t worry if you’re unsure where each menu location is on your site. You can visit the website to see the menu in action. If you don’t like it, then you can always change the menu location further.

Arranging Items in a Custom Navigation Menu | Creating A Sub Menu

You probably noticed that each menu item you added is arranged in the order you added them. For example, your about link appears at the end, while the contact page link appears first. Don’t worry you can easily rearrange your WordPress menu items in any order you want.

Simply drag and drop a menu item to adjust its position in the menu.

Repeat the process to create new menus for other theme locations.

Creating Nested Drop-Down or Sub Menu in WordPress

Nested/Drop Down/Sub menus, are navigational menus with parent and child menu items. These menus are usually styled by WordPress themes in such a way that when a user takes their mouse to a parent item, all their sub-menus are displayed.

Creating nested menus allow you to add a properly structured navigation system to your site. Here is how you can add a menu item as a sub-menu in WordPress.

 

In your menu structure, drag the menu item just below the parent item. Next, slightly drag the menu item to the right. You will notice that it will automatically become a sub-menu item.

Creating nested menus with sub-menu items

You can add multiple layers of sub-items to create deeply nested navigation menus. However, it’s important to note that not all themes support multi-layer nested menus. Most do up to 2-layers.

Sub-menus with their own child menu items

Adding Categories to WordPress Menus

If you’re using WordPress to run a blog or a website, then you can add your blog/website categories as a drop-down in your WordPress menu.By default, WordPress provides an easier way to add pages and categories from the left-hand column on the menu editor screen.

Start by clicking on the Categories tab to expand it. You will see your blog categories listed there. Simply select the categories you want to add to the menu, and then click on add to the menu button.

Adding categories to custom navigation menu in WordPress

You will notice that categories will appear as menu items under menu structure column. Just like pages, you can simply drag and drop them to arrange their position on the menu. In this example, we have dragged all categories to appear as sub-menu items under the Blog.

Adding categories to navigation menu

In The Similar Fashion, You can Add Submissions, templates and Custom Links To Your WordPress Website.

If You have any query or suggestion then Comment below.