Category Archives: WordPress

How To Fix And Set File Permissions On WordPress

No doubt WordPress is the most widely used CMS out there, you might be having one or two websites on WordPress, that’s why you are here, right? Sometimes WordPress can give you errors which don’t let you manage or upload files on it, but the best part of WordPress is that most of its errors are easy to fix. Recently I was moving one of my websites to another server, everything went fine and in no time I was ready to publish the post from the new server. But before I can publish and post blogs, I decided to update all pending plugins, as soon as I pushed update button, I was served with a new error. As you can see this error has occurred due to missing or bad file permissions.

Wordpress Wrong File Premission

Before we can fix this, let us see what happens behind the wall. As you know all of your WordPress files are hosted in a computer which you call server which is managed by your hosting company and this computer uses a special software to manage and run a server, either Apache or NGINX.

File and Folder permission tells the server who can read, write and execute the files which are hosted on your server as per their rights, commands with incorrect file permission will not allow any kind of changes or modifications on the files hosted on your server.

What Is the Default Or Secure File and Folder Permission for WordPress –

By default, you should set 755 permission for Folder and sub-folders whereas files should have 644 permission.

How To Set It –

First of all, you need an FTP client, I am going to use FileZilla here, which is a free and easy to use FTP client. Now login and once you are in the root folder of your blog.

For Folder –

File Permission Box

  • Select all folder and right click there and click on ‘File Permissions’

  • This will bring up a new dialog box, now set file permission as 755
  • Also, click on ‘Recurse into subdirectories’ checkbox and then select ‘Apply to directories only’ option.
  • That’s it, just click on Ok and sit back and relax, FileZilla will take some time and will set 755 as file permissions to all Folders.

For Files –

File Permissions WordPress

  • From the root directory of your blog, select all files and folders and right click on it and click on ‘File Permissions’
  • This will bring up a new dialog box, now set permission as 644
  • Also, click on ‘Recurse into subdirectories’ checkbox and then select ‘Apply to files only’ option’ option.
  • That’s it, just click on Ok and sit back and relax, FileZilla will take some time and will set 644 as file permissions to all Files.

[Solved] WordPress Address and Site Address URLs are disabled

The other day I was moving one of my new websites to my other server so that I can fully test it and make some changes to the site, all went smoothly and good. As we are using HTTPS across all of our iTechnixNetwork websites, I decided to change the URL to HTTPS via my WordPress admin dashboard so that by default website will load secure version whenever anyone visits that website.

So for this, I logged into my website admin panel then navigated to Dashboard -> Setting -> General, but there I found out that I am not able to change the WordPress Address (URL) and Site Address (URL) fields as they as disabled or grayed out.

Wordpress Address URL Setting Disable

This usually happens when you move your website but forget to delete some codes or sometimes some themes come with some codes which disable this setting, solution of this problem is very simple, you just need to delete some lines from your WordPress files and you are ready to go.

First login to your FTP client and navigate to the folder where you have installed WordPress, now we have to edit your wp-config.php file*. Once you have opened the wp-config.php file, look for below mentioned two lines.


Once you have found these lines, either delete them or just comment them out, and you are done, refresh you General setting page and you should be able to edit those fields.

Still not able to do so? Try this.

Sometimes themes come with some code which also disables these fields, to solve this, you have to open function.php file of your theme and look for below-mentioned lines.


Again,  either delete them or just comment them out, and you are done.

[*] wp-config.php files is a very secure file which contains sensitive data of your websites, edit it at your own risk.

[Solved] 404 Error On WordPress Post

No doubt on that WordPress is one of the most widely used and popular blogging platforms over the internet and nowadays even companies have started using WordPress for their main website, reason is dead simple, it is simple to use but yet it is a powerful CMS platform, even a newbie with almost no knowledge about coding can start blog in just 10 minutes and start posting on his/her blog.

WordPress Single Post 404 Error

It allows you to customize and tweak it as you want and sometimes a slight tweak can break your website but again what makes WordPress awesome is finding a solution is easy, you can head over WordPress support platform get your problem solved.

Today we are covering a problem which we have faced on one of our blogs, we were tweaking some setting and suddenly when we check our website and try to open any post it shows 404 error page, but posts were there as we can see them in the admin page.

If you are also facing same so first of all don’t panic as all of your posts as safe and you will get them back. The most common reason for this issue is your .htaccess file might get deleted or something happened with that file and causes rewrite rules issue.

A simple solution for this problem is to save your permalink structure again, all you need to do is head over to Setting->Permalink and save it as it is, nothing needs to change over here, just press Save button and you are good to go, just check your blog again and your posts must be showing up now, It updates permalinks settings of your website and flushes the rewrite rules.

WordPress Permalink

If above doesn’t solve your issue then, use FTP client and navigate to your directory and set permission for the .htaccess file as 666 and then repeat the above method and you will be done.

P.S. Don’t forget to change the permission for .htaccess file back to 660 once you are done.

Does Inactive WordPress Plugins Make Your Website Slow?

If you have websites build on top of WordPress then I am sure you must have searched or looked for the answer whether any inactive plugin will make your site slow or not. One of the benefits of having WordPress based blog or website is that you have thousands and thousands of plugins which makes your job much easier and simpler, even if you are new to WordPress and don’t have any knowledge about coding or so on, then also you have plugins to make your job much easier.

Inactive Plugin WordPress Slow

As told earlier, there are lots of plugins for different works, and over the period of time you might end up installing lots of plugins and you might not be using all of them and some of them may be inactive and you are no longer using them at all.

Does Inactive Plugins Affect Loading Time?

So does these inactive plugins affect the loading time of your wesbites, does these inactive plugins make your site slow, this is one of the most frequently asked question over WordPress forums.

Well a simple answer is NO, nope, inactive plugin does not affect your site loading time and they are not the reason for your sites slow loading time.

Let’s try to crack this in detail:-

When you request a website or we can say WordPress based website in your web browser, then website send some files to your browser so that it can render and display contents to you, WordPress never send any files from any inactive plugin, which means no file is being loaded from inactive plugins and end result is, it’s not making your site slow.

Wordpress New Plugin Page

You can take these inactive plugins as extra contents which WordPress throw in a store room or garage, and it will use them only when you ask for it, means when you activate them.

WordPress loads these plugins only when you open up your Plugin page, even then also it only loads header of those plugins to display its information.

Should I Delete Those Inactive Plugins?

Well answer to this question is very simple, if you have downloaded and installed any plugin to try out something and it didn’t work, then simply delete that plugin without any second thought.

If you have uninstalled plugin for some time or due to any reason like you might be trying out something else or so on and soon you will be back to that plugin, then keep it, no need to delete that plugin as when you deactivate any plugin, WordPress still keeps its setting with it so that when you activate it again, you will have as it is settings back.

Any Risk Involved In Keeping Inactive Plugins?

Yes, some time attackers might use those plugins to attack your websites as even those are inactive, but they have got files which can get infected, another thing is that even if you are not using those plugins, WordPress keep showing you updates for those plugins which are annoying.

As a security measure, you should delete inactive plugins if you are not planning to use it in near future, else keep it with you.

So now we know none of the inactive plugins make your site slow, if your website is not loading fine, then you should look for other reasons.

How To Add Hreflang Tag In WordPress (With And Without Plugin)

WordPress is not just a blogging platform anymore, nowadays more and more companies are using it WordPress to build their full fledge websites, and if you too using WordPress to make your own website and your website publish contents in more than one language then you should be aware of Hreflang tag, how important this Hreflang tag is for you and for your website, and it can make your website perform well in SERP, it can improve your SEO those regions and languages.

What Is Hreflang Tag?

Hreflang tag tells the search engine to show a particular page for region and language, you can even show your content is targeted toward another variant of the language, by extending the hreflang attribute which indicates to which region the content is targeted for, like in below example es-es is targeted for Spanish in Spain, whereas, es-mx is for Spanish in Mexico:-

<link rel=”alternate” href=”” hreflang=”en-us” />
<link rel=”alternate” href=”” hreflang=”fr-fr” />
<link rel=”alternate” href=”” hreflang=”es-es” />
<link rel=”alternate” href=”” hreflang=”es-mx” />

Noawadays Search Engine is smart enough to identify the language of the page and automatically match it to the language settings on user’s browser. But if you are publishing same contents in the different language then your own contents will be competing with each other.

To solve this issue, you can use hreflang tag, here we will see how you can add this tag in WordPress with Plugin or Without Plugin.

How To Add Hreflang Tag in WordPress With a Plugin:-

If you don’t want to dig yourself in code, and want a simple way out then you can use Polylang plugin, it is a free multilingual plugin which you can use to make your multilingual WordPress site.


This plugin will take care of all technical things and lets you focus on your content only. Polylang has a simple but very useful interface.

How To Add Hreflang Tag in WordPress Without a Plugin:-

If you don’t want to use a plugin or want more control over your control then you can do it, this is the beauty of WordPress, it lets you publish contents they way you want, it lets your take control of your contents.

HREFLANG Tags Lite Plugin

You can install HREFLANG Tags Lite, a free plugin, and once install and activated, it will add a menu to your WordPress Admin page, just navigate to it and select the post type on which you want to enable it.

HREFLANG Tags Lite Plugin Option

Once done, edit page or post and you will see a new meta box there, first, you need to add the URL and then add a language, you click Plus button to add other variations. Once done, update your post and you are done.

How To Check:-

To check whether you have implemented Hreflag tags properly or not, then you need to visit your page and view its source code and press CTRL+F or Command+F and search for hreflang tags there.

Do let us know how you like to use hreflang tags, with a plugin or without a plugin.

How To Make WordPress Embedded Video’s Responsive

No doubt that WordPress is one of the most widely used content management tool which is already used by most of the blogs and even by some of the top companies for their main website. WordPress is simple to use and it can be used by any newbie who have some basic knowledge of internet. WordPress also comes with some out of box SEO setting which helps you to rank good in SERP.

WordPress Responsive Videos

As we all know Google has said that all websites should adopt responsive design for their webpages as it will be easy for reader as they are going to get same look and feel on mobile which they are getting on desktop version, Google has also said that webpages with responsive design will get high rank on SERP.

You can design responsive design with the help of CSS and javascripts but their is one thing which is not easy with just JS and CSS. When you embed video on a webpage either you have to wrap in under DIV and then you can define width and class for that DIV so that your video will look good across all screens.

But here you have to put div class every time you need to add video, but why you need to add DIV everytime when it can be done automatically, yes by adding some code’s into your theme file you can make your theme file.

As told earlier, WordPress does not add div around your videos so we are going to add div, for this just add following code to your functions.php file :-

/* Add responsive container to embeds
 /* ------------------------------------ */
 function ta_embed_html( $html ) {
 return '<div class="ta-responsive-vid">' . $html . '</div>';
add_filter( 'embed_oembed_html', 'ta_embed_html', 10, 3 );
 add_filter( 'video_embed_html', 'ta_embed_html' );

Now this code will automatically put a ta-responsive-vid DIV around your videos, next we have to define some styles for this so that it will adjust its width and height according to the screen, add following styles to your style.css

.ta-responsive-vid { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.ta-responsive-vid iframe, .ta-responsive-vid object, .ta-responsive-vid embed, .ta-responsive-vid video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

Install WordPress On Hostgator Within 5 Minutes

If you are going to start a blog or even planning to launch a website then we would suggest you to do take a look on WordPress, its an open source platform which is being used by millions of users across the globe. Its free, it has very large community and it comes with lots of customization’s which you can do on your website or blog. If you too planning to start a blog or website then Hostgator is one of the best hosting provider which you can use, Hostgator provides different plans like Shared Hosting, Reseller, VPS and even Dedicated server hosting.

One thing which we liked about Hostgator is that they have very good support staff and its very easy to use as well. Today we are going to show you how you can install WordPress on your Hostgator hosting within just 5 minutes.

WordPress has some basic requirements which you must check before using any web hosting program, and Hostgator fulfills all these requirements of WordPress and makes your blog to run very smoothly without any issue and it can easily handle your traffic.

  • You can use our coupon to get straightaway discount of 25%, use technoarea25

So lets get started, Hostgator comes with a nice option of Quick Install, which you can find on your cPanel, Once you login to your cPanel just look for it, you will find it under Software/Services section.

Hostgator Quick Install

On next screen you will find lots of CMS tools, on the left side of the screen, which you can install on you blog, just click on WordPress and on next screen click on continue.

Wordpress Quick Install

Now you will be served with some basic option like select the domain on which you wants to install WordPress, then you have to provide an email address for the admin, select your Blog Title (show your creativity here), select a admin username, provide your first and last name and at last click on Install Now button.

Hostgator-WordPress Installation Setup

Within a minute QuickInstall will download WordPress package, unpack it, create a new database for  your blog and setup for you. Don’t close that window till you get congratulation message, you can straightaway check your blog to see whether WordPress is installed or not.

Now you have to check your eMail account as your admin password will be sent you in email which you can use to login to your newly WordPress dashboard.

That’s it, you have a new blog running WordPress and we have setup this in just 3-4 minutes.

Copyright© 2014-2019 BloggingMayor
The content is copyrighted to Rahul Sharma and may not be reproduced on other websites.