Web
Analytics
Connect with us

WordPress

How to customize WordPress themes?

Published

on

WordPress themes are the backbones of your websites, right? I mean how your website looks is one of the most important metrics you'd come across. Cause at the end of the day, “User Experience” is what gets you ranked. And that you can solve by knowing How to customize WordPress themes.

I'm not saying that customizing your WordPress themes would get you on the Top of Google search results. But yeah they would improve your site's user experience, which in turn will affect, even if a little, to boost your SERP rankings.

So that's the reason I'm writing this piece to show you the process of customizing WordPress themes, and explain to you how to edit a WordPress theme. If you are confused about WordPress Themes and what theme you should use, see this post telling you a way to choose the best WordPress Theme.

But before that, let me walk you through some basics on the topic.

What are WordPress Themes:-

WordPress themes are the layouts, the design of your website, coded primarily with PHP in order to enhance or modify the look and feel of your websites.

Now there are two basic kinds of themes:-

  • Parent Themes.
  • Child Themes.

Parent themes are the basic framework, on which the child themes are built. Having a parent theme is specifically beneficial as it allows you to modify your child theme, without the need to make any serious changes to the parent theme.

The child theme can be edited or modified by you, and you don't need to modify the Parent theme for it, what this does is if something goes wrong, you don't have to be scared of loosing the layout completely, because you'll only be modifying the child theme and not the parent theme.

Also the child theme let's you modify the “looks” of the theme, without compromising on  the other factors of the theme. Like the SEO/ Speed/ Compatibility etc So yeah having a Parent-child theme framework is beneficial. Also take a look at installing Tumblr Theme for Tumblr Blog.

How to Customize WordPress Themes:-

Okay so by now you know how to choose the best WordPress themes, and also what they are, right? Let's get down to the fun part, the part where I explain to you how to customize WordPress themes.

Most WordPress themes, come built-in with the customizer. What these means is, you don't need to get into codes or anything to know how to edit WordPress theme. Instead you can do it directly from the dashboard.

So login to your Dashboard, and click over Appearances> Customize button

 

How-to-customize-WordPress-themes

This would open up the theme customizer.

How-to-customize-WordPress-themes

Now you can customize your WordPress theme from here. All the themes would have a similar layout. Some might have a slightly different options set, meaning the header might be placed inside another option or something, but this is the basic process. It's always the same.

The Site Identity is what let's you customize, change, edit the Site Title, Descriptions, and Favicons. (Keep in mind, Favicons are not the same thing as “logos”!)

how-to-edit-wordpress-theme

Once you click on it, you'll be greeted with the simple options of changing the most basic information about the website.

The Header option comes next. This is what let's you change the website's logo, and Description of the header, in short anything that appears in the header can be customized from here. It's pretty straightforward, you just upload your logo, and click save.

how-to-edit-wordpress-theme

 

The next is the Layout option. Keep in mind that the contents of this option might vary according to your theme. The layout option will always be there, but maybe the supported layouts might vary.

But the basics remain the same, you click on the layout options, and it'll let you choose from the available layouts for your website.

editing-wordpress-themes

 

Social options too is an “optional” option! Means it might or might not be present, but if it is present, it's what let's you add your Social media profiles to the website. Like your Facebook Fan page, Google Plus profile etc.

editing-wordpress-themes

So that's it, just keep clicking the options and they would let you customize your WordPress theme as you wish.

Editing WordPress Themes From The Source Code:

Unless you've atleast some experience with PHP and HTML, I recommend you stick to the above method to customize your WordPress themes. But if you do have the experience, I'll give you a basic insight into the primary files you might want to edit to create your own CHILD THEME!

Yeah that's possible! And it's not extremely hard!

Files You're Would Have to Edit:-

  • functions.php
  • Style.css

Once those files are edited, you might want to get your hands on the theme files. The primary theme files, like the index.php, header.php and all the rest of the files.

I can't “teach” you how to customize a theme from the source codes, but I can show you how to edit those files.

Go to your Dashboard > Editor.

 How-to-customize-WordPress-themes

And on the right side, you'd see all the files listed neatly. You just have to click on the file you want to edit, simple as that.

 How-to-customize-WordPress-themes

Once you click on it, it would open up in the editor at the center of the screen. And this is where you can customize the theme based on your coding and creativity skills.

 How-to-customize-WordPress-themes

Final Words:-

So that's it folks on How to customize WordPress themes, I'd recommend you to stick with the in-built customizer if you're not a pro level WordPress Dev.

Or if you want to try your hands at the source-code editing, I'd suggest you take a WordPress Backup before proceeding. But the bottom-line is, that's how solve editing WordPress themes problems! Not a lot of rocket science there, yeah WordPress is advanced enough. In case you are running out of PHP memory in WordPress, see this to increase php memory limit in WordPress.

I'd appreciate if you hit the share button. It might help someone out there.

 

Evan Derek is the Founder and Chief SEO Analyst @ VebbLabbs. Specialising in Affiliate Marketing and helping newcomers to make it a stable profession in the online world, he boasts 6+ years of experience in the industry. 19 year has he spent on this planet successfully, and plans on spending atleast 50more !

Continue Reading
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress

How to Schedule Your Posts in WordPress?

Published

on

How to Schedule Your Posts in WordPress? That's what you're looking for? Then this is where your quest ends, cause that's exactly what I'll be explaining in detail (with some other details as well!)

All of us on this page either have a WordPress site or are soon going to have one, right? Or else you wouldn't be reading this piece right now!

And then maybe you thought to ask the question of How to schedule upcoming posts in WordPress, to maybe explore the features of WordPress, right?

What is Scheduling WordPress Posts?

Scheduling WordPress posts are simply the feature that lets you publish an article just at about anytime, automatically after you write it.

Let's say you write a piece today but you want it automatically published on the new year's eve, you can just set the date and the time, and the article goes live then.

I personally use this feature when I've more posts in my drafts section than I need, in that case publishing all of them at the same time isn't really wise, so what I do is I just schedule the posts to be published a day after another each, and so I automatically keep my website updated without even login in to the dashboard.

What are the Benefits of Scheduling WordPress Posts?

Yeah if you're investing your time in reading this piece and I'm investing mine in writing this on How to Schedule WordPress Posts, there must be some advantages to it, right?

Of course, there are, and I”' just list them down for you:-

  • Automatic Website Updates:- My personal favorite use of this feature is the automatic website updates I get. It helps me maintain my rankings because the “frequency” of updating and article is totally a ranking factor!
  • Readers' Engagement:- On my personal site, I have a big header saying I publish a new article on every Tuesday, Thursday and Sunday, now what happens is my readers know that's when a new article would come up, and scheduling helps me keep up that promise, no matter when I wrote a certain post or If I'm out of station.
  • Increase Returning Visitors:- You wouldn't believe if I told you that by knowing simple solutions to How to Schedule and Publish Posts, you could actually increase the number of returning visitors you're getting! How? Here's a simple strategy I use, I publish a great, detail guide on “How to Build Backlinks”, but what I do is, I don't give it all away, I only publish half of it and let my readers know that the second half would be coming on a certain date, now that increases their excitement and wait and hence I get a massive surge of returning visitors on the day when I publish my second part!

How to Schedule Your Posts in WordPress:-

Alright so we've had enough of the chit-chat, right? Why not get down to the real deal! I'll just show you how to schedule Your WordPress Posts right here.

What you Need to Schedule Your WordPress Posts:-

  • No Third-Party Plugin.
  • No “premium” Account.
  • No Paid Tool.

So basically, you don't need ANYTHING special in order to know how to Schedule your Posts in WordPress. In fact, it's all built-in, the feature is a built-in feature of WordPress, and in fact, it's so damn awesome that you don't even need to move away from the page where you're writing your article to Schedule your WordPress posts.

So okay, get to your “New Post” page, meaning where you write a new post or article on your WordPress.  Once you're there, just take a look at the right sidebar under the “publish” section and find the “publish” option.

How-to-schedule-upcoming-posts-in-WordPress

Just click on “edit” and it would bring up a date and time format for you.

How-to-schedule-upcoming-posts-in-WordPress

I'm guessing you already know what to do now! Yeah, you just got to set the Date and Time for when you want your article to go live and click on “OK”. Once you set the date & time, you will see, “Publish” Button being replaced with the “Schedule” button. Just click on Schedule and you are done.

Done! Well, let me show you how a “scheduled” post looks like on your WordPress Dashboard.

How-to-schedule-upcoming-posts-in-WordPress

See? There it's saying clearly that the post is scheduled, hence? Mission Accomplished!

Other Methods to Schedule Your Posts in WordPress:-

The one other method worth mentioning here is, integrating your WordPress account with IFTTT! Now IFTTT does a lot more than just schedule your WordPress Posts, basically, it's a whole automation solution.

But then again, it's pretty complicated and needs lots of integrations and logic settings, so my advice? Just stick to this procedure, it's just as simple as it gets!

I just listed the procedure here in case the above method isn't working and you're desperate to schedule your WordPress posts, in that case, you can retreat to this option!

Final Words:-

So yeah that was all I had on How To Schedule Your Posts in WordPress guys!

I'm pretty sure your problems are solved, I mean there wasn't anything complicated, right? In fact, it's even easier than creating a Facebook account! (Probably that's the reason why WordPress is being used by over 25% of the internet!)

So anyway, if this piece helped, I'd seriously appreciate your feedback in the comments section! And I'm sure you can't find a simpler way to schedule WordPress posts, but if you did, I'd love to hear about them too!

Also, I wouldn't mind if you hit the share buttons, who doesn't like being shared, right?

Continue Reading

WordPress

How to Fix Error Too Many Redirects Issue in WordPress?

Published

on

this webpage has a redirect loop

No doubt that WordPress is the world's most popular CMS existing today! It powers over 25% of the total world websites! But with great power, comes great responsibilities, right? So one such issue WordPress sometimes gives in to is the question How to Fix Error Too Many Redirects Issue in WordPress?

That's exactly the question I'm addressing today! Redirection issues are one of the most common issues with WordPress! And the twist is that they're pretty easy to solve too!

But just because of those complicated terms like this webpage has a redirect loop and things like that, many people think it's something that requires you to have a Ph.D. in rocket science, well you don't!

What are Redirection Issues?

WordPress is nothing but URL's, right? A lot of well organized, structured, and linked urls! Well although WordPress has taken good care of URLs and their links, sometimes things go south.

Let me put it this way, WordPress uses Permalinks structures to publish, open and maintain websites, right? Every permalink takes you to a specific address.

The problem is that the same URL algorithm/structure (whatever you want to call it) is also used by a lot of plugins we use on our websites.

And sometimes, the settings in the plugins, themes, elements (can be anything else!) conflict with the default URL pattern of WordPress and hence this problem exists.

In short, there's no fixed reason why this issue will arise, but it does arise. The simplest explanation is that URL's sometimes mis-redirect, or don't redirect at all, and hence the redirection issues come up.

So a slight misconfiguration with the Theme or a plugin can cause havoc on your websites. And you get something like this one the screen:-

Too Many Redirects

But let me tell you, fixing them is extremely easy! Which we will come to eventually.

What are the Most Common Redirection Issues:-

Now there are over 50 redirection issues that exist, but you don't face each one of them so easy, neither is fixing them!

But there are a couple of issues which knock down your door every next week or maybe a month.

  • This Page isn't Redirecting Properly.
  • This webpage has a redirect loop! – It occurs when Your page 1 is redirecting to Page 2, and Page 2 is redirecting back to Page 2, so basically you never reach your destination.

Worry not, fixing both of them has an identical procedure so this article will help you out in either case.

Why Should you Fix Too Many Redirect issues on WordPress:-

It's simple, if your website has a redirection issue, it won't come up. None of your visitors would be able to visit your website.

It's an era of extreme competition, unless you're a brand and authority already, in which case you might have an excuse, your blog would be doomed.

People won't care t click on your links in the search results next time, ever! That would take down your CTR,  push you down the search results, lower your traffic, and you'd end up quitting the site, all this, just from one simple redirection issue.

So here's how to fix it.

How to Fix Error Too Many Redirects Issue in WordPress:-

The Most Common Reason (And fix) to the Problem:-

Go to your WordPress Dashboard, and click on settings>General

How to Fix Error Too Many Redirects Issue in WordPress
How to Fix Error Too Many Redirects Issue in WordPress

There you would see the simple option of WordPress Address and Site Address! Now here's the catch. All the hosts let you select your primary URL structure.

Meaning if you want your website to have the www prefix, or not! It depends on what you've selected as the preferred URL.

I can't show the screenshots here because I'm not sure what your choices are. But it's simple if you've selected WWW as the preferred URL, and on the WordPress settings, you have only the naked URL set, this problem might show itself up.

The second scenario is when you have the naked URL set on the host as a preferred URL, but you've set www.yoursite.com in the WordPress settings as your URL.

The Solution:- I think it's already clear, just make sure that you're Preferred URL and WordPress setting's URL are the same.

Answer #2 to How to Solve This Webpage has a Redirect Loop Problem:-

The above solution was simple, wasn't it? Here's another “simpler” solution! It works when the issue is on the client-side and not on the server-side.

Hit Control+Shift+N on Google chrome to reach Incognito Mode.

How to Fix Error Too Many Redirects Issue in WordPress

Click on the three-line bars at the top-right corner>Settings.

How to Fix Error Too Many Redirects Issue in WordPress

Type “cookies” in the search bar, and click on Clear Browsing Data.

How to Solve This Webpage has a Redirect Loop Problem

Select Clear cookie option, set the time to “beginning of time”  and click on Clear browsing data.

How to Fix Error Too Many Redirects Issue in WordPress

This should probably solve your problem, because this issue isn't always based on the server-side, and hence if it was on your side, this should solve it.

Method #3 on How to Fix Error Too Many Redirects Issue in WordPress:-

I already mentioned this issue might also arise due to a URL redirection conflict with themes and plugins? Right?

So the simple solution to the problem is:-

  • Find out “IF” plugins are causing this.
  • Find out “which” plugin exactly is causing it.
  • Deactivate /update the plugin.

So in order to do that, here's what we will do:-

Deactivate all Plugins (and if that solves the problem= Plugins are causing this!) > Start reactivating them one by one ( to figure out which plugin exactly is causing this!)

So okay we hit the WordPress Dashboard, Plugins> Installed Plugins.

How to Solve This Webpage has a Redirect Loop Problem

Select the Topmost check Bar, and check it. This will select all your plugins in the list in a single click.

How to Fix Error Too Many Redirects Issue in WordPress

Bulk Actions> Deactivate

How to Fix Error Too Many Redirects Issue in WordPress

Once they're deactivated, check if the website is working! If it starts working, it means your problem is being caused due to a malfunctioning plugin.

Now, start Reactivating the plugins one by one. Activate one plugin, check the site, keep repeating this till you get the error again.

Once you get the error, you'll know that the last activated plugin was causing the error. So just click on Deactivate once you find the plugin.

How to Fix Error Too Many Redirects Issue in WordPress

(Note that “blogger importer” isn't the plugin which causes it, I'm using the screenshot only to show you an example!)

Final Words:-

So that was How to Fix Error Too Many Redirects Issue in WordPress guys! If this piece helped you can show your experience in the comments section.

Also, feel free to hit the share button.

Continue Reading

Blogging

How to Switch from Blogger to WordPress without Losing Search Rankings?

Published

on

How to Switch from Blogger to WordPress

How many times have you been in the dilemma of How to Migrate your Blog from Blogger to WordPress? Me? Around 10 times, and well by now I've already moved blogs too and fro about 7 times, (the first three times I was just too scared!), so the point being, that's what I'm covering in this piece today, How to Switch from Blogger to WordPress without Losing Search Rankings.

If you're an avid reader over here, you're most probably already familiar with my tradition, I get into the “why” before the “how”, well and that only seems fair.

If I'm explaining to you How to Import a Blogger blog to WordPress, I think you do deserve a chance to know who to import a blogger blog to WordPress in the first place, right?

Why Import a Blogger Blog to WordPress:-

Now well, WordPress is used by a total of 25% of the overall world websites! That's a big number! But no reason for you to switch to WordPress too, yeah granted.

So here are some of the most basic advantages and reasons which would make you consider switching your blog to WordPress right about now:-

  • Self-hosted CMS:- The worst thing about a blogger? Nope, it's not the layout or the themes, it's the “control”. You don't “own” your own blog! Google owns it, it can delete, edit, change or completely remove your years of hard work (not from just the Search Engines, but remove “literally” from the blogosphere directly!) without any notice to you.
  • Better Themes and Layouts:- WordPress has dozens of platforms devoted to getting you the best possible looks and layouts, while blogger? Not so much. Themeforest is one such leading platform! The point being, the types of layouts and designs possible with a blogger blog aren't so achievable with the blogger blogs.
  • Third-Party Plugins:- “Blogging” has turned into a whole lot of science right now! You can't imagine getting ranked or making a career just by “writing content”! You need Email popups, CDN's, Lockers, and what not in order to outrank your competition! Guess what, none of that is possible on a blogger blog, while WordPress? Well totally possible!
  • Better security:- The only thing a hacker needs to hack in order to cause havoc on your blogger blog, is your Gmail account! And hacking Gmail? It is a kid's job! (Take it from someone who has spent a lot of time doing this exact shit!). While on WordPress? You've got extra security layers, a personalized cPanel, defensive plugins like WorDfence and lots more!

So yeah, I think I've listed more than enough reasons for you to consider the switch, right? Now let's get into some action.

How to Switch from Blogger to WordPress without Losing Google Rankings:-

Well the primary reason you loose your rankings is, during the migration process, you mess up your article permalinks. And additionally, don't properly redirect it, as a result the new site becomes “completely” new for Google, and hence the rankings are all vaporized.

So if you don't want that to happen, the first thing you'd want to do is, export your blogger blog.

How to Switch from Blogger to WordPress without Losing rankings

Log in to your Blogger blog, go to settings.

Then, click over the “other” option.

How to Switch from Blogger to WordPress without Losing rankings

Now, choose the “back up content” button.

How to Import a Blogger blog to WordPRess

And finally click on save to computer.

Migrate from Blogger to WordPress without losing Google Search rankings

This would get you a .xml file on your computer.

Great, you're done! Now let's import this .xml blogger file to your WordPress website, right?

Login to your WordPress, and go to Tools>Import.

How to Migrate your Blog from Blogger to WordPress

Then choose the “blogger” option from the list.

How to Migrate your Blog from Blogger to WordPress

And click on Install importer. This importer is an external plugin that you can use to import the blogger blog to WordPress pretty smoothly.

How to Migrate your Blog from Blogger to WordPress

Once it's installed, click on “activate and run importer” button.

How to Switch from Blogger to WordPress without Losing

On the next screen, just click the “choose” button and upload the blogger backup file you just downloaded.

How to Switch from Blogger to WordPress without Losing

Done! You just imported your blogger blog content to your WordPress blog. But hey, that was just the first step, that's what you can find almost in any other piece on the internet about How to Migrate your Blog from Blogger to WordPress, but the main part, the “don't lose your rankings” part is still to follow.

So once you've imported the content, let's work on “not losing” our rankings.

You'd want to go to your WordPress blog's settings> Permalinks for the next step.

ow to Migrate your Blog from Blogger to WordPress

Now you need to make sure that your WordPress permalink is exactly the same, or as close as possible to your blogger blog's permalinks. And well for that I'd say the safest bet is choosing Month and Name. Because that's the default blogger permalink structure, right?

ow to Migrate your Blog from Blogger to WordPress

So once you save that up, you're done with the permalink settings.

The Redirection:-

So once you've done the permalinks thing, the last thing that remains to be done is the redirection.

  • Redirecting Blogger Blog to Redirect to the WordPress site.
  • 301 redirecting posts to exact permalinks on the WordPress site.

Go to your Blogger Dashboard, and click on Templates.

Migrate from Blogger to WordPress without losing Google Search rankings

Then scroll down to the very bottom of the page, and click on the “Revert to Classic Templates” button.

Migrate from Blogger to WordPress without losing Google Search rankings

Once you've clicked on that button, you can clearly see the “Edit Template HTML” box. Delete everything in the text-box, and paste the following code there:-

<html>
 <head>
  <title><$BlogPageTitle
gt;</title>

   <script>
    <MainOrArchivePage>
    window.location.href="http://example.com/"
    </MainOrArchivePage>
    <Blogger>
     <ItemPage>
     window.location.href="http://example.com/?blogger=<$BlogItemPermalinkURL
gt;"
     </ItemPage>
    </Blogger>
   </script>

   <MainPage>
   <link rel="canonical" href="http://example.com/" />
   </MainPage>

   <Blogger>
    <ItemPage>
    <link rel="canonical" href="http://example.com/?blogger=<$BlogItemPermalinkURL
gt;" />
    </ItemPage>
   </Blogger>
 </head>

 <body>
  <MainOrArchivePage>
   <h1><a href="http://example.com/"><$BlogTitle
gt;</a></h1>
  </MainOrArchivePage>
  <Blogger>
   <ItemPage>
    <h1><a href="http://example.com/?blogger=<$BlogItemPermalinkURL
gt;"><$BlogItemTitle
gt;</a></h1>
    <$BlogItemBody
gt;
   </ItemPage>
  </Blogger>
 </body>
</html>

Note:- Replace the Example.com in the above code with your new WordPress blog URL. And save the template.

How to Migrate your Blog from Blogger to WordPress

Done! Now just one last piece of work left for you to finish off. Login to your Cpanel, and go to File Manager Public_Html

How to Switch from Blogger to WordPress without Losing

Then go to Blog Name> Wp-Content > Themes > Theme Name >there you'd find your functions.php file and then right Click on functions.php>edit.

How to Migrate your Blog from Blogger to WordPress

And paste the following code into the functions.php file.

function blogger_query_vars_filter( $vars ) {
  $vars[] = "blogger";
  return $vars;
}
 
add_filter('query_vars', 'blogger_query_vars_filter');
 
function blogger_template_redirect() {
  global $wp_query;
  $blogger = $wp_query->query_vars['blogger'];
  if ( isset ( $blogger ) ) {
    wp_redirect( get_wordpress_url ( $blogger ) , 301 );
    exit;
  }
}
 
add_action( 'template_redirect', 'blogger_template_redirect' );
 
function get_wordpress_url($blogger) {
  if ( preg_match('@^(?:https?://)?([^/]+)(.*)@i', $blogger, $url_parts) ) {
    $query = new WP_Query ( 
      array ( "meta_key" => "blogger_permalink", "meta_value" => $url_parts[2] ) );
    if ($query->have_posts()) { 
      $query->the_post();
      $url = get_permalink(); 
    } 
    wp_reset_postdata(); 
  } 
  return $url ? $url : home_url();
}

You just 301 redirected your blogger blog to WordPress!

301 is the best redirection protocol ensuring the least ranking loss. (100% ranking loss is “impossible”, it always loses some juice, but this causes the least damage and you can come back up in less than a week!)

Final Words:-

So that was all I had folks on How to Switch from Blogger to WordPress without Losing. I'm sure this piece should've helped you out Migrate from Blogger to WordPress without losing Google search rankings.

If it did, I'd love it if you hit the share buttons. Or maybe got a question? Something isn't working, right? Do leave a comment I'll try my best to help you out.

Continue Reading

WordPress

How to Lock WordPress Content?

Published

on

How to Lock WordPress Content

It's a thankless world, no matter what you do, you don't always get the support you deserve or crave for right? That happens with us too. And hence I had to come up with this piece on How to Lock WordPress Content.

At times, after spending weeks on research and hours on the keyboard when I finally get a piece finalized, I expect some support from my readers but that's not always what happens, and hence I'll be teaching you How To Restrict Access To Areas Of Your WordPress Website, now that's something which helps.

What Does Restricting Content Mean?

Well if I'm writing a piece for the audience, what's the point in restricting it, right?

The point is, the restriction doesn't exactly mean restriction, it means partial restriction, let me show you How to Add Content Locking in WordPress, and you'd understand.

#1. Partial Locking:-

Basically it's like the content is locked till a certain action is performed, let's say alike, a share of the article on social media, or a comment!

#2. Password Protection:-

Restricting isn't always for social shares or engagement, at times we also need to Password Protect our content, so that only a select few individuals have access to that content!

This can be used in order to compartmentalize information, or maybe if you're selling a particular kind of content, you can give them the passwords once you get paid.

Anyway, the reasons to lock WordPress content are endless.

What are the Benefits of Locking WordPress Content?

The benefits range from getting social signals, to more engagement!

It's like a cycle, let's say you lock a piece of content and the readers need to share the piece on their social media in order to gain access to the article, so once they share the piece, their friends would land on your site, and they'd share the piece too, hence creating a cycle of unlimited audience.

Not to mention the ranking boost that you'd get with the help of the strong social signals.

Also this way, your blog would attain a certain kind of authority on social media, people would naturally start sharing your content if the content is really good without you needing to force them to do so.

And if you're going with the Password Protection method, I think you already know why passwords are a good thing, right? They help you secure your privacy, restrict unwanted users from accessing content that's not for them and so on.

How to Lock WordPress Content:-

Well, there are a number of ways to lock WordPress content, but we would stick to the simplest and easiest ways to do so.

There are two ways to lock WordPress Content which I'll be discussing:-

  • How to Lock Specific Content in WordPress Blog Post using Passwords.
  • Lock WordPress content using third party plugins:-

So let's get along with the first method. That's how to lock WordPress content using Passwords.

This is the simplest method to lock WordPress content, in fact, it takes less than 10seconds to be completed, and doesn't require any third-party plugins or even the need to move away from the page where you're writing your content!

How To Restrict Access To Areas Of Your WordPress Website,

It's pretty easy, just write a post on your WordPress dashboard as you normally would, and then click on the “edit” option under the publish > visibility tab on the right sidebar of the dashboard page:-

Next click on the “password protect” button and enter the password you want to set.

How to Lock WordPress Content

Done! Just publish the article with these settings and it would be password protected. Now only those who have the password to the article will be able to view the articles!

Note that this restriction method is only applied to the current post, meaning for the post which you were writing, it's not universal, if you want this on every post of yours, you'd have to manually do so.l

Method #2  to Restrict WordPress content using Plugins:-

This method is more fruitful if you ask me, basically locking WordPress content with this method helps you get more social signals and exposure.

There isn't a lot of settings you've got to manage either, in fact, it's as easy as “install and use”. Of course, there are advanced settings for those who are interested, but the basic settings are preloaded and don't need a lot of effort from your side.

So in order to lock WordPress content with this method, you'd need to login to your WordPress dashboard, and click on Plugins > add new.

How To Restrict Access To Areas Of Your WordPress Website,

And then search for “Social Locker”, and install the below plugin.

How To Restrict Access To Areas Of Your WordPress Website,

Once it's installed, You'd get the locking shortcode on your WordPress dashboard writing box.

How to Add Content Locking in WordPress

So in order to lock content, just select the text you want to lock, and then click on the shortcode.

how to Lock Specific Content in WordPress Blog Post

Done!

Let me show you how the locked content looks once it's live!

How to Lock WordPress Content

If you ask me, I'd say the locker does a pretty professional job! And it wasn't hard installing it either was it now?

Final Words:-

So that was all I had on How to Lock WordPress Content guys. I'm sure this piece should've helped you.  If it did, I'd appreciate it if you leave a comment down in the comments section.

Or if you're stuck somewhere and I can help, do let me know. Also, I'd love to hear if you've got your own thoughts on locking WordPress content, maybe a plugin that's better, or maybe a different method altogether?

Basically feel free to speak your minds out.

Continue Reading

WordPress

How to Move WordPress From Local Server to Live Site?

Published

on

How to Move WordPress From Local Server to Live Site

How to Move WordPress From Local Server to Live Site? If that's what you need an answer to then you're at the perfect place.

Moving a site from a local server to a live site isn't the hardest task on this planet, but it's not the easiest either, so I'll try to simplify it as much as possible for you.

What's a Local Server?

Before answering How to Migrate WordPress Website from Localhost to Live Server, let me start from the basics.

A local server is basically just the “web-environment” on your computer which allows you to work on your web-projects similarly as you would on the internet, but just with a lot more speed and ease.

That's the case because on the Internet you need to save and refresh for every change to take effect and that in total makes a “lot” of changes, hence lot's of wasted seconds which add up to hours in the long run.

Also on the web, deleting or modifying certain files need repeated permissions, asking you to login or authenticate over and over again, but on your local server,  you just need to authenticate them once.

The only problem is, a project on the “local server” is placed locally on your system and not the internet. So if you want the project to be accessible worldwide on the web, you need to move it to a live server.

So the bottom line is, “local server' and “live server” both are basically just “storage space” for your projects, the former is local and offline while the latter is online and available to everyone.

How to Move WordPress From Local Server to Live Site?

Before you can move your WordPress from local server to live site, you'll need three basic things:-

  • Make sure your local site is ready.
  • Make sure WordPress is already installed on your Live server.
  • Make sure you write down the SQL database and password which you use while installing WordPress.

Step 1:- Exporting the Site Content

The first thing you need to do is, export your WordPress content so that you can upload it to your live server.

In order to do that, go to your local server's WordPress module, go to your dashboard and click on Tools>Export.

How to Move WordPress From Local Server to Live Site

On the next page, choose “all content” and click on “download export file”.

How to Move WordPress From Local Server to Live Site

You'll get a .xml file containing all your WordPress site's content. This is the file you'll need to import in the next step.

Importing the WordPress Content:-

Now you'll need to import the file you just downloaded. Again login to your WordPress, go to tools>import.

It might ask you to install an “importer”. Just install the “WordPress” importer. (It takes couple seconds only!)

How To Move Your WordPress Website From localhost To Live Server

Once you've installed it, just browse to the .xml file you downloaded and import it. Once that's done it means you've successfully imported your posts, images, menus, etc to your live site.

Step 2:- Exporting and Importing the SQL database:-

You need to import your MySQL database to your live server as well so that your live server can communicate with your WordPress files.

Login to your Phymyadmin module on the local server. You can alternately use “http://localhost/phpmyadmin” to directly access it on your local server.

How to Migrate WordPress Website from Localhost to Live Server

Next, you'd want to click on “export” if you want to learn How To Move Your WordPress Website From localhost To Live Server.

So click on export, and select “SQL” from the drop-down menu and click go.

How to Move WordPress From Local Server to Live Site

Now you'd need to find and replace all the primary URLs of your project. Because by default, local server projects have the URL of “localhost”. You need to change them to your URL.

So right-click on the SQL file you just downloaded, and edit it with any editor. I normally use notepad++.

Just press ctrl+f and go to the “replace” tab. There enter “http://localhost/your_project (replace “your_project” with the name of your project file), and in the “replace with” tab, enter your URL.

How to Move WordPress From Local Server to Live Site

Step 3:- Linking the Database with your WordPress Installation:-

During the WordPress installation, there was a moment when you were asked to create a new username and password for the database.

Something like the following screenshot:-

How to Move WordPress From Local Server to Live Site

I'm sure you wrote down the username and password. Those are the credentials you'll need now.

Now you'll need to edit your Wp-config.php file. Just change the following credentials with the credentials you used while creating the MySQL databse during the installation:-

  • define(‘DB_USER’, ‘your_database_user’);
  • define(‘DB_PASSWORD’, ‘your_database_password’);
  • define(‘DB_HOST’, ‘localhost’);
  • define(‘DB_NAME’, ‘your_database_name’);

Done!

Optional Step:-

If you had customized your WordPress local server with logos and personalized images, you'd need to upload all the files you have on your local server to the live server.

This is nothing technical or complex, all you've to do is upload all the files to your Public_HTML folder (if you have not installed WordPress is any other directory like /blog /mysite etc).

Or use a simple FTP client like FileZilla to accomplish the task.

Final Step:-

So that was all I had on How to Move WordPress From Local Server to Live Site folks. Hope this piece was helpful.

Although I do understand that it's one of the “more complex” articles, so there's a fair chance that you're stuck somewhere, in case you are just let me know in the comment box and I'll help you out.

Last but not least, I wouldn't mind if you share this piece around your social networks.

Continue Reading

Trending