Tag Archives: How To

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] 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.

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=”itechnixnetwork.net” hreflang=”en-us” />
<link rel=”alternate” href=”itechnixnetwork.net/fr/” hreflang=”fr-fr” />
<link rel=”alternate” href=”itechnixnetwork.net/es/” hreflang=”es-es” />
<link rel=”alternate” href=”itechnixnetwork.net/es/” 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.

Polylang

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 Check Domain Authority And Page Rank Of A Website

I still remember those days when we all use to check page rank of a website to get an idea how popular and big a website is, I am sure anyone who had started his blogging journey couple of years back, must have check his PR. Although I am not huge fan of these metrics but still they play important role for your online venture, many times you will be judge with these metrics only, and many times you need to know about your competitors so these metrics comes handy.

Google Page Rank Dead

But Google hasnt updated PR from a long time, and now its considered totally dead, so if PR is gone then how to keep eye on your competitors, and when you want to monetize your blog further you need to know these things.

So we need something to measure our growth, yes we can see it through our Google Analytic but what when we need to compare it with our competitors, we cant get their Google Analytic data to compare, so in this case you can use Domain Authority and Page Authority.

And the good thing over here is that these DA and PA is not made up by new start up, its coming from Moz itself, I think you know Moz if dont then I really feel sorry for you. Both DA and PA are measured in the scale of 0-100, higher means better.

Moz says :-

Domain Authority predicts how well a website will rank on search engines, while Page Authority is as same as DA, while DA is for domain, PA measures the strength of individual page.

To check your Domain Authority or Page Authority, visit Moz’s Open Site Explorer (OSE) page and enter your domain to see the score.

TechnoArea Domain Authority

Do share what score your domain has got and what you thing and how you gonna use these metrics.

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%; }

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