How to Install and Setup WordPress SEO Plugin by Yoast

How to Install and Setup WordPress SEO Plugin by Yoast

Do you want to properly install and setup Yoast SEO plugin? At WPBeginner we use WordPress SEO plugin by Yoast because it is the most complete SEO solution for WordPress websites. In this article, we will show you how to install and setup Yoast SEO and utilize all the awesome features that come with it.

Yoast SEO Banner

Features

Yoast SEO is the most comprehensive WordPress SEO plugin with many built-in tools and features. Here is a quick overview of some of those features.

  • Change post’s SEO title and meta description on a per post basis.
  • Title and meta description support for taxonomies (e.g. category and tags).
  • Google search result snippet previews.
  • Focus keyword testing.
  • Meta Robots configuration:
    • Easily add noodp, noydir meta tags.
    • Easily noindex, or nofollow pages, taxonomies or entire archives.
  • Improved canonical support, adding canonical to taxonomy archives, single posts and pages and the front page.
  • RSS footer / header configuration.
  • Permalink clean ups, while still allowing for Google Custom Search.
  • Breadcrumbs support, with configurable breadcrumbs titles.
  • XML Sitemaps with:
    • Images
    • Configurable removal of post types and taxonomies
    • Pages or posts that have been noindexed will not show in XML sitemap (but can if you want them too).
  • XML News Sitemaps.
  • .htaccess and robots.txt editor.
  • Ability to verify Google Webmaster Tools, Yahoo Site Explorer, and Bing Webmaster Tools
  • Basic import functionality for HeadSpace2 and All in One SEO. (You can also use the SEO Data Transporter to transfer functionality from themes like Thesis, Headway, Genesis etc).

The premium version of the Yoast SEO comes with even more features.

  • A redirect manager that allows you to easily set up redirects.
  • Video tutorials to help you understand each feature of the plugin.
  • Premium support provided by the folks at Yoast to help you make the most out of your site’s SEO.

For more features and details you may want to see our comparison of Yoast SEO vs All in One SEO Pack.

How to Install Yoast SEO Plugin

First, thing you need to do is install and activate the Yoast SEO plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you will notice a new menu item in WordPress admin bar labeled SEO with Yoast SEO logo on it.

Yoast SEO plugin installed

Now that you have installed and activated the plugin, let’s take a look at how to properly setup this powerful plugin.

How to Setup WordPress SEO Plugin by Yoast

You should remember, that the settings that we select are the ones that we recommend. Other experts may have their own preferences and discretion, so advanced users can ignore anything that they do not like.

If you are a beginner, and you want to use Yoast’s WordPress SEO plugin like we do, then please follow along the steps carefully.

Step 1. Data Transfer

Most of you probably have another WordPress plugin like All in One SEO pack, or a theme framework like Genesis dealing with your SEO data.

If you want to successfully use this plugin, then you need to make sure that all of your previous data has been transported to this plugin before you deactivate the other one.

To accomplish this, we recommend using SEO Data Transporter by StudioPress. If you’re setting this up on a new blog, then skip this step.

Step 2. General Settings

Clicking on the SEO icon takes you to settings page for the plugin. Click on ‘General’ tab and you will notice a button to open configuration wizard. We want you to ignore this wizard, because we will be taking you step by step through each option.

Yoast SEO - General

Step 3. Features

Let’s switch to the ‘Features’ tab and enable the advanced settings page.

Enable advanced settings page for Yoast SEO

Don’t forget to click on the save changes button to store your settings.

You will notice new items appear under the SEO option in your WordPress menu.

Advanced options in Yoast SEO enabled

These items include Titles and Meta, XML Sitemaps, Social, Advanced, and tools. We will be showing you how to setup each one later in this article.

Step 4. Your Info

Next, you need to switch to the ‘Your Info’ tab. This is where you will provide information about your site and the person or company behind it.

Yoast SEO - Your Info

First you need to provide a site name and an alternate name for search engines to consider. Your site’s name could be your site’s title.

If you do not enter anything here, then Yoast SEO will automatically use your site’s title as your website name. Search engines like Google can display this information in search results like this:

Company name in search results

The next option is to choose whether this website is run by a company or an individual person. If you choose company, then you will be asked to provide a company name, and you can also upload a company logo.

On the other hand, if you choose a person, then you can add the name of the person behind the website.

Step 5. Webmaster Tools

If you know a little bit about SEO, then you have probably heard that each of the popular search engines, Google, Bing, Yandex, and Alexa allow site owners to add their sites using webmaster tools area (see our guide on how to add your WordPress site to Google webmaster tools).

Webmaster tools let you see insights and other relevant data about your site from specific search engines.

In order to verify your site and see those exclusive data, you have to add a meta tag to your site, or upload a file. Most beginners are afraid to add meta tags, so Yoast put this option in to ease the process. Simply add the meta code that you received from the search engines in the respective fields.

Yoast SEO - Webmaster tools

Step 6. Security

The last tab in general settings is labeled Security. This has only one option which disables advanced part of the WordPress SEO meta box. We recommend that you leave it disabled. Disabling advanced metabox will prevent your authors from making advanced changes like noindex and canonical settings (which is good).

Yoast SEO - Security

Step 7. Titles & Metas

Titles & Metas section under Yoast SEO has several tabs in it. We will cover each one of them.

1. General

Here you can choose the symbol you want to use a separator between titles. Default option is dash, you can use it if you are unsure which symbol to choose.

Titles and Metas - General

On this page, you can also disable readability and keyword analysis tab which appear under the Yoast SEO metabox when you are writing post. We recommend that you leave them enabled.

2. Homepage Title

Next, we will work on defining the title for our homepage. By default you will see these fields pre-filled with title-template. So what is the difference between a title and a title template, you may ask.

In instances like your homepage, you may want to create a static title, description, and keywords. But for posts, the title will vary from one post to another.

Title templates allow you to define a way that the title and other meta information is pulled and organized.

Let’s take a look at the image below for the home page settings. By default the template variables in the title field work fine for most website however you’re welcome to change it. The next option is to enter your site’s description. Once you are done, click on save settings button.

Homepage title and meta description

Note: If you are using a static homepage, then you will see links to edit your homepage and blog page to add title and meta descriptions.

3. Post Types Titles & Metas

By default WordPress comes with several post types such as post, page, revisions, attachment, and navigation menus. Users can also define their own custom post types.

Yoast SEO allows you to set titles and meta for posts, pages, media, and other custom post types. This site-wide title and meta description will be used if you forgot to add title and meta description for individual post.

We recommend leaving the description fields blank for all post types here. We also recommend using only the post title as the title template.

Post title template

Remember Yoast SEO plugin also adds an SEO meta box in your post edit area. For maximum SEO benefits, we highly recommend you to manually enter title and descriptions for each post, page, and custom post type on your site. Otherwise Yoast SEO will use the title as defined here and will automatically add description for your posts and pages.

Read our WordPress SEO Tip for Beginners on optimizing blog posts.

4. Taxonomies

On the taxonomies tab, you can configure titles and meta for categories, tags, custom taxonomies, and post format archives.

Default template variables should work for most sites. As for descriptions, please remember that Yoast SEO picks up descriptions from your categories and tags.

Taxonomies meta

If you do not have any description for terms in your categories, tags, or custom taxonomies, then WordPress SEO does not add meta description in archives for these terms. Check out our guide on categories vs. tags.

5. Archives

On the Archives tab, you have title and meta settings for author and date archive pages, and special pages such as search and 404 pages.

We recommended that you check disable author archives for single author blogs. If you are running a single author blog, then your main blog and the author archives contain exactly the same content. The setting is there to prevent duplicate content.

Archives meta title and description

Leave other settings as they are and save changes.

6. Other

The other tab has some additional settings. Like you can disable picking up descriptions from Dmoz or Yahoo directories for your pages. If you are unsure what to do here, just leave all of them unchecked

Step 8. Social

As we said earlier, Yoast SEO is a powerhouse packed with many features to provide comprehensive optimization.

One great feature of the plugin is that it integrates your site with Facebook, Twitter, and Google+ social platforms.

Clicking on the Social link under the SEO menu will take you to setup these platforms. We will show you how to configure each of them.

1. Accounts

The first tab under the social settings is for all your social accounts. This allows Yoast SEO to tell Google about your social profiles. You need to simply add the URLs and Twitter username for the main social profiles of your site.

Add your social media accounts

2. Facebook

On the Facebook tab, first make sure that open graph meta data option is enabled. Checking this allows WordPress SEO to add Facebook open graph meta data in your website’s <head> section.

This will help Facebook pick up the right thumbnail and page information when a post from your website is shared on Facebook.

The next option is to provide a thumbnail for your homepage with SEO title and description. This image and description will be used when someone shares the homepage of your site on Facebook.

After that you can provide a default thumbnail image URL. This image will be used for all articles that do not have a thumbnail or any other image in it.

Facebook settings

The next option is to associate your website with a Facebook profile. This profile can be a user profile as well as a Facebook app. In most cases, Facebook profile is the way to go.

You can add a Facebook admin which will give you access to Facebook Insights for your site.

3. Twitter

As for Twitter, you can add Twitter cards into your site’s head section.

You can also choose the card type to use. We recommend using summary with large image.

Adding Twitter cards to WordPress using WordPress SEO by Yoast

4. Pinterest

Pinterest uses Open Graph meta data just like Facebook. Make sure that you have open graph meta data box checked under Facebook settings.

After that you just need to enter the site verification code provided by Pinterest. Simply visit your Pinterest account settings to add and verify your site. You will be provided with a meta tag that you need to enter here.

Yoast WordPress SEO plugin - Social settings for Pinterest

5. Google+

If you have created a Google+ page for your business enter its URL here, and then go to your Google+ business page and enter your website’s URL in about section.

Yoast WordPress SEO - Google Plus settings

Step 9. XML Sitemaps

Sitemaps are essential for your WordPress site. It is the quickest and easiest way to get indexed and notify search engines about your content. Sitemaps also allow you to tell search engines how to prioritize your content.

WordPress SEO by Yoast makes it super easy to add XML sitemaps in WordPress. The XML Sitemaps settings is divided into different tabs. We will walk you through them.

First you need to make sure that XML Sitemaps are enabled.

Enabling XML Sitemaps in Yoast WordPress SEO plugin

After that you need to click on the ‘User Sitemap’ tab and make sure that author/user sitemap options is disabled.

Disable author/user sitemap

Move on to post type tab and disable any post type that you don’t want to be included into sitemaps.

By default, Yoast SEO disables Media Attachments from sitemaps.

Post type sitemaps

Repeat the same process for taxonomies. If there is a taxonomy that you don’t want to be included into sitemaps, then you can exclude it here.

The excluded posts tab allows you to remove individual posts,pages, or custom post types from XML sitemap. Simply enter the post IDs in the field and save changes.

See our tutorial on how to find post IDs in WordPress.

Exclude posts from sitemap

Step 10. Advanced

The advanced settings page allows you to configure breadcrumbs, permalinks, and RSS feed related settings.

1. Breadcrumbs

Breadcrumbs are great for internal linking because it defines a clean path or trail to the page you are on. These breadcrumbs also appear in search results giving your site extra advantage in the search.

Breadcrumbs in search results

Make sure that you click on ‘Enabled’, this will reveal more breadcrumb settings.

WordPress SEO - Breadcrumbs

The default settings should work for most websites, but if you want to change something then go ahead. Once you are done click on the save changes button.

2. Permalinks

Just to be clear, we are talking about the Permalink settings in Yoast SEO tab, not in the setting tabs.

This section does not allow you to create SEO Friendly URLs in WordPress. It assumes, that you have already done that.

So let’s take a look at what type of features this section offers:

Permalink related settings in WordPress SEO Plugin

WordPress by default adds a category base in each category url i.e /category/.

By clicking ‘Remove’ you can strip that part from your category URLs. This is something that a lot of people want. But you can leave it unchecked if you do not want your category urls and page urls to conflict if they are the same name.

Next option is to redirect attachment URLs to parent post. WordPress allows you to attach images and other media to posts. But all of those attachments get their own URLs which in most cases are unnecessary. Therefore by checking this box, you redirect all your attachment page URL to the original post URL.

The next option is to remove stop words from permalinks. Stop words are common words used in plain language. Yoast believes that by removing these, you will create cleaner URLs. While it does make the URLs smaller, we disagree with Yoast. This is why we have left it unchecked.

The next option on the permalinks page is to remove ?replytocom variable from comment reply links. It disables the links for the users with javascript disabled.

Most web crawlers when they visit your site have javascript disabled, so they do not see the URL and can quickly move on. This increases the crawl efficiency particularly if you are running a site with lots of comments.

Redirect ugly URLs to clean permalinks option is not needed in most cases. We advise you to ignore it unless you know what you’re doing.

3. RSS

RSS Feeds are often used by content scrapers to copy content from your website. Yoast SEO allows you to add a backlink to your own site for each post in your RSS feed.

This way, you will get backlinks from their site, and Google will know that you are the original source.

There are options to add your author link, Post link, blog link, and blog description. So get creative. This can also be used to add advertisement to your RSS feed.

WordPress SEO plugin RSS header and footer settings

For advanced users: How to Add Custom Content and Completely Manipulate your RSS Feeds.

Step 11. Tools

As you can see that we have spent a good amount of time getting these settings just right, so you probably want to export the settings as Backup (just incase if you accidentally mess things up in the future). You can also export settings to use it as an initial guideline for all of your future sites that you are going to use this plugin on.

Yoast SEO tools

The bulk editor allows you to edit post titles and descriptions in bulk. We do not recommend using it. Duplicate descriptions and titles can cause damage to your SEO.

The other tool is file editor, we strongly urge beginners and even intermediate level users to stay away from these settings. Tiny mistake there can make your site inaccessible for search engines or make it useless.

Step 12. Search Console

Search Console section in the Yoast SEO plugin, allows you to connect your WordPress site to Google Search Console tools (formerly webmaster tools).

You can add your WordPress site to Google webmaster tools and then verify it using Yoast SEO plugin.

Connect to Google Search Console from Yoast SEO

Simply click on get Google Authorization Code and you will be redirected to Search Console website where you will get a code. Copy this code and enter it in the plugin settings to complete the verification.

After the verification, you will be asked to select a profile. You will need to select your website from a dropdown menu.

Yoast SEO will now fetch your Search Console data into WordPress. You will be able to see Desktop, Mobile, Feature Phone tabs on screen.

Search console data

This is where you can see crawl errors related to your website and mark them as fixed after setting up redirects (we will discuss redirects later in this article).

Yoast SEO Premium

The basic Yoast SEO plugin is free and works really well for millions of WordPress sites around the world. However, it comes with an even more powerful Premium version.

Step 13: Redirects

Yoast SEO Premium adds a powerful redirect manager. This allows you to quickly set up redirects on your WordPress site. You can quickly fix 404 errors in your Google search console by setting up redirects and marking them as fixed in Search Console.

Redirect manager in Yoast SEO Premium

Step 14: Customizing and Maximizing the Benefit

Just installing and setting up this plugin is not enough. In order for you to really maximize the benefit of this plugin, you need to customize the settings on per post basis.

Now this would not be a chore if you do it every time you write a post. Let’s take a look at how you can maximize the benefits by customizing.

WordPress SEO for Individual Posts and Pages

When editing any post or page in WordPress you will now see a metabox below the post editor labeled Yoast SEO. This box comes with tons of SEO options allowing you to improve that post and page.

You can click on the title in the snippet preview to edit it. You can also click on the edit snippet button to add title and meta description for the post or page you are editing,

You should write a custom title, and meta description rather than letting it auto-generate.

Sometimes your post title, and your SEO title might not be the same. Every time, you should write a custom Meta Description because the excerpt generator only picks up the first paragraph which might not be the most important one.

Make sure you select a focus keyword, so you can get analysis on how strong your page is for that keyword. For more details check out WordPress SEO tip for beginners – how to optimize your WordPress blog posts.

Once you click Save the post you will see analysis of the post below snippet preview. This gives you even further insights about your specific post or page.

Post or page analysis for SEO

Use the free analysis as a reference point. Don’t kill yourself over it, but usually it is pretty accurate.

WordPress SEO for Category and Tag Archives

Just like your post and pages, you can also override the SEO title and meta descriptions for category, tag, and author archive pages.

Visit Posts » Categories page and click on the edit link below any category. On the category edit page, scroll down to bottom and you will see the Yoast SEO meta box.

Category SEO Title and Meta description in Yoast SEO

You can do that for all your categories, tags, and custom taxonomy archives.

We hope this guide helped you install and setup WordPress SEO plugin by Yoast. You may also want to see our step by step WordPress SEO guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Install and Setup WordPress SEO Plugin by Yoast appeared first on WPBeginner.

Squeezy Stretchy Flexbox Nav

Squeezy Stretchy Flexbox Nav

Go to Source

I saw an interesting take on off-canvas navigation the other day over on The New Tropic. It wasn’t the off-canvas part so much. It was how the elements within the nav took up space. They stretched out to take up all the space, when available, but never squished too far. Those are concepts that flexbox makes pretty easy to express! Let’s dig in a little.

Here’s the nav, a video showing what I mean:

My favorite part is how there are submenus. When a submenu is toggled open, the same rules apply. If some stretching has happened, the nav items will shrink in height, making room for the submenu. But never shrink too far. If there isn’t room, the menu will just scroll.

Standard Two-Level Nav HTML

Pretty easy to mock out with Emmet:

<nav class="main-nav">
  <ul class="nav-list">
    <li><a href="">Lorem ipsum.</a></li>
    <li>
      <button class="submenu-toggle-button">+</button>
      <a href="">Explicabo, perspiciatis.</a>
      <ul class="submenu nav-list">
        <li><a href="">Lorem ipsum.</a></li>
        <li><a href="">Culpa, qui!</a></li>
        <li><a href="">Repudiandae, eaque.</a></li>
      </ul>
    </li>
    <li><a href="">Sit, dolor.</a></li>
    <li><a href="">Dicta, possimus?</a></li>
    
    <!-- etc -->

  </ul>
</nav>

Flexbox the Column

Let’s make sure that list is as tall as the browser window, which is easy with viewport units. Then make sure each of the list items stretch to fill the space:

.main-nav > ul {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-nav > ul > li {
  flex: 1;
}

We’ve already gotten almost all the way there! Stretching works great, only when there is room, like we want:

Quick Toggles

We have a <button> in place to toggle the submenus (arguably, we should probably place those buttons with JavaScript, since they don’t do anything without). Here’s how they could work. The submenus are hidden by default:

.submenu {
  max-height: 0;
  transition: 0.5s;
  overflow: hidden;
}

We can open it with a class:

.submenu.open {
  max-height: 200px; /* non-ideal magic number */
}

We’re animating to an unknown height here, which is tricky. We hope to have a good article addressing this out soon (there are options).

Toggling classes is plenty easy:

var buttons = document.querySelectorAll('.submenu-toggle-button');

[].forEach.call(buttons, function(button) {
  button.addEventListener('click', function() {
    var submenu = button.parentNode.querySelector('.submenu');
    submenu.classList.toggle('open');
  });
});

That gets those submenus behaving like we want:

Demo

You’ll probably need to pop over to the Pen to play with the vertical stretching stuff.

See the Pen Squeezy Stretchy Nav by Chris Coyier (@chriscoyier) on CodePen.


Squeezy Stretchy Flexbox Nav is a post from CSS-Tricks

Go to Source

Improve your designs with these 4 must-have Photoshop downloads

Improve your designs with these 4 must-have Photoshop downloads

Go to Source

Layer Styles

Layer styles are one of the most useful tools ever created. No matter what kind of a graphic you are creating, layer styles will make your text much better. You simply create a text (or any other object) and apply the style to your layer one by one until you find the perfect fit. They instantly change any text into a much more professional-looking design.

Photoshop comes with about a dozen layer styles already installed, but the nice thing about layer styles is that you can find lots of them free online. There are thousands out there, downloadable and easy to install. You just put all of your layer styles into one folder and then you can upload them all at once. Also, you can export your entire collection of layer styles – you will then have everything you need in one small file even if you reinstall Photoshop.
More info: Photoshop layer styles

Shapes

Shapes are another great thing to download. Photoshop has some shapes already available, but unless you are okay with a circle, square and arrow shape, you should consider some more. This will allow you to choose from your entire collection of shapes whenever you need to create something that you would normally have to draw manually.

Shapes are also very easy to find online and download for free. To install them, download them somewhere on your hard drive, go into Photoshop and choose the custom shapes tool. After this click on the shape picker, press the little play button to the right and choose LOAD SHAPES when the dialogue box pops up. Finally, find your shape file and upload it.
More info: Brusheezy

Fonts

This may seem like an obvious one, but many people fail to download new fonts because they already have a few dozen to choose from as a part of Windows and they don’t think they need any more. But there are lots of cool fonts out there and you might be surprised at just how much better you can make a graphic if it has the right font.

One of the most popular places to get free fonts is 1001freefonts.com, which by now has tens of thousands instead. You can download them for free one at a time or the whole collection for a small fee. You should also be aware that some fonts cannot be used commercially so you might want to search for a commercially licensed free font for each new project you do.
More info: 1001 free fonts

Pixie

The last useful tool that we are going to discuss isn’t actually a Photoshop asset – it is simply a tool that makes working in Photoshop a lot easier. Pixie is a tool that tells you the exact Hexadecimal or RGB of any color that you place your mouse on.

This is extremely useful when you are trying to design a graphic that will match the look of your blog or website. You can manually set the RGB on the color picker and get the exact color that you are trying to match in Photoshop.
More info: Pixie

This is a guest post by Emily Miller.


Go to Source

How to Add Random Header Images to Your WordPress Blog

How to Add Random Header Images to Your WordPress Blog

Do you want to add random header images to your WordPress blog? Most WordPress themes come with built-in support to add header images. These images can completely change your site’s look and feel. In this article, we will show you to how to add random header images to your WordPress blog without writing any code.

How to add random header images in WordPress

Most free and premium WordPress themes come with custom header support. Custom headers in WordPress are a theme feature which allows WordPress themes to designate a header area showing an image.

Header image in WordPress

Custom header is different than background image feature which allows you to set a cutom background image on your WordPress site.

Having said that let’s take a look at how to add random header images to your WordPress blog.

Method 1. Random Header Images Using WordPress Theme Customizer

This method is easier and is recommended for most WordPress users.

You need to head over to Appearance » Customize page to launch WordPress theme customizer.

Changing header image in WordPress

Next, you need to click on ‘Header’ tab to expand it. The header option can also be labeled as header image or header media in your theme.

You will see your site’s current header image, and any other header images available to use.

You need to click on the ‘Add image’ button to upload the images you want to use as header images.

Once you have uploaded a few images, they will appear under recently uploaded images.

Randomize header image

Now you need to click on ‘Randomize uploaded header’ button under recently uploaded images and then save your changes.

You can now visit your website and reload it to see header images change randomly.

Method 2. Add Custom Header Images on Select Pages Using Plugin

This method is more flexible and gives you more control on how to show different or random header images for WordPress posts, pages, category, or tag archives.

First thing you need to do is install and activate the WP Display Header plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to edit a post or create a new one. You will notice a new meta box labeled ‘Header’ below the post editor.

Random header for single post and pages in WordPress

Here you can select a previously uploaded header image to your theme and use it as a header for this post. You can also check the ‘Random’ option to randomly display a background image from your uploaded header images.

If you want to add more header images, then head over to Appearance » Customize and click on the Header tab.

Add more header images

Next, you need to click on the ‘Add image’ button to upload more header images. You don’t need to change the header of your theme just upload the images and exit the customizer.

The plugin also allows you to change header image for your category and tag archive pages.

You will need to go to Posts » Categories page and then click on the Edit button below category you want to change.

Editing a category

On the category edit screen, you will notice the new header section where you can select a header image or show random header images.

Random or fixed header image for category archive page

Don’t forget to click on the ‘Update’ button to save your changes.

That’s all, we hope this article helped you learn how to easily add random header images to your WordPress blog. You may also want to see our guide on how to boost WordPress speed and performance.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Random Header Images to Your WordPress Blog appeared first on WPBeginner.