How to view the page source of your site

How to view the page source of your site

Most SEO data is output behind the scenes in the source code for your site. So, how do you know if [XYZ] feature is working? Check the source code by following the steps below.

You can, also, check the source code of your sitemaps, admin pages, and pretty much every page that your browser can display.

Table of contents

Chrome
Safari
Firefox
Other browsers
How do I search in the source code?

Chrome

As with most things on a desktop, there are a number of ways to get to the same spot. So if the steps below don』t work, try these alternate options.

View the page for which you want to see the source code.Right-click the page and click on 『View page source』 in the drop-down menu. 

Safari

Click on Safari menu > Preferences > Advanced. Check 『Show Develop menu in menu bar』. Close the Preferences window. Go to the Develop menu > Show Page Source.

Firefox

As with most things on a desktop, there are a number of ways to get to the same spot. So if the steps below don』t work, try these alternate options.

View the page for which you want to see the source code.Right-click the page and click on 『View Page Source』.

Other browsers

Please contact the support team for your browser for information on how to view page source.

How do I search for a specific tag in the source code?

Once you are viewing the source code, sometimes you may need to search for a tag. You can do this by finding the search function of your different browsers below:

ChromeFireFox

We know it can be hard to get the technical part of SEO right. Did you know we have a training subscription to help you master this subject? Check out our Technical SEO training subscription.

How to noindex individual author pages

How to noindex individual author pages

You can let search engines know you want to keep your individual author pages out of the search results. To do this, you can 『noindex』 your individual author pages in the WordPress settings. Let』s explore how to go about this.

If you don』t want author archive pages on your site at all, you can also choose to disable the author archive pages on your site.

Related articles

How do I noindex URLs?Why noindex a page or nofollow a link?How to keep your page out of the search resultsHow to noindex an entire site

To noindex individual author pages, follow these steps: Log in to your WordPress website. When you』re logged in, you will be in your 『Dashboard』. Click on 『Users』. On the left-hand site, you will see a menu. In that menu, click on 『Users』. Go to 『All Users』 Select the right user to edit in the Users overview. On the profile editing page, check 『Do not allow search engines to show this author』s archives in search results』 in the Yoast SEO settings. Once you get on the profile editing page, scroll down and find the Yoast SEO settings. There, you check the box for 『Do not allow search engines to show this author』s archives in search results.』 This will tell Google not to index that author page.

How to edit .htaccess through Yoast SEO?

How to edit .htaccess through Yoast SEO?

Table of Contents

Using WordPress Admin
Using Server / FTP
Troubleshooting

Edit In WordPress Dashboard

If the .htaccess file is not writable or your WordPress install has disabled file editing, the following steps may fail. Optionally, you can edit at the server level.

Log in to your WordPress website. When you』re logged in, you will be in your 『Dashboard』. Click on 『SEO』. On the left-hand side, you will see a menu. In that menu, click on 『SEO』. Click on 『Tools』.  The 『SEO』 settings will expand providing you additional options. Click on 『Tools』. Click on 『File Editor』. This menu will not appear if your WordPress install has disabled file editing. Please enable file editing or edit the file through FTP. Make the changes to your file. Save your changes.

Create or Edit On Your Server

Use your favorite text editor and create a text file.Save the empty file with the name .htaccess.Upload the file to your server root.

Now you should be able to edit the newly created file from our plugin using the steps above. If not, you can always edit the .htaccess file directly on your server using FTP or a server file manager.

Please contact your webhost for assistance if you have trouble uploading or editing files on your server.

Troubleshooting

If the issue you experience is not listed below, please see your support options.

Why do I see the error 「.htaccess file is not writable」? Your server permissions prevent writing to the file. Please contact your webhost to change the permissions on the .htaccess file. Why is the 『File Editor』 menu missing? Your WordPress install has disabled file editing. Please enable file editing or edit the file on the server.

How to select a primary category

How to select a primary category

To help visitors find their way on your site, you can use breadcrumbs. They are the clickable links you usually see on the top of the page. They can easily be implemented using the Yoast SEO breadcrumbs block. Now, why are they important for the primary category?

Depending on the structure of your site, some of your posts may belong to several categories. So what happens to the breadcrumbs if you have a post that belongs to three categories? It can get messy. But we have a solution. In Yoast SEO, you can select a primary category. In that way, we make sure that your permalinks and breadcrumbs remain clean, which is good for SEO.

An impeccable site structure makes your content easy to find. Yoast SEO Premium contains several features that help you structure your site. By giving your website a structure boost, you get benefits for your SEO, your visitors, and search engines!

You need to implement breadcrumbs to your site for them to work. After you have implemented them, you can also edit the breadcrumbs pathway to include the primary category.

How to select a primary category

With Yoast SEO, you can easily select the primary category when you are editing a post.  Go to the Categories setting in the sidebar of the post editing screen. Click on the dropdown menu under Select the primary category. The menu expands. Select the primary category from the menu.

How to disable the primary category feature from Yoast SEO 

In some cases, you might want to disable the primary category feature. We have added a filter and written a short guide on how to use it.

How to use Yoast SEO Premium with Zapier

How to use Yoast SEO Premium with Zapier

When you use the Zapier with Yoast SEO you can save a lot of time by automating repetitive tasks. How does that work? By allowing you to create automated workflows called Zaps. These Zaps use triggers that allow for one or more actions to occur.

Table of contentsHow do Zaps work? Related articlesUsing Zapier with Yoast SEOHow to troubleshoot Zapier in Yoast SEO Premium

How do Zaps work?

Let』s say you select publishing a post with Yoast SEO as a trigger. Then, you can connect Yoast SEO with your preferred social network and choose an action that will follow the trigger. For example, you can choose to have an automated tweet posted every time you publish a new post on your site. This is just one example. But there are over 2000 apps that you can connect to Yoast SEO and automate your work in creative ways!

So, how does all of this work exactly? Well, let』s find out!

Related articles

Yoast SEO 15.3 release with Zapier integrationWhat is Zapier? And 5 things you can do with it!Using Zapier in Yoast SEO Premium: FAQ

Using Zapier with Yoast SEO

To connect Yoast SEO Premium to Zapier and create your first Zap, follow these steps. Go to the General tab of the SEO menu item in the admin menu. Then, click the Integrations tab in the General Settings screen. Make sure that the Zapier integration toggle is set to On. If the toggle is off, toggle the switch On and press Save changes. Save changes. Click 『Save changes』 before you continue. Copy the API key. You will need to use this key in the later steps. Click on Create a Zap in Zapier. A new tab on zapier.com will open. If necessary, log in or create an account in Zapier. After you have logged in, you will be in the Zapier dashboard. Click on the Make a New Zap button in the middle of the screen, or the Make a Zap button in the top left corner. A new screen will open. Type in Yoast in the search box to find the app and select it to create the trigger. In the new window with options for the trigger, make sure the trigger event is set to New Published Post and click Continue. Click the Add a New Account button to connect Zapier to Yoast SEO Premium. If you already connected an account previously, you will be able to select it from the drop-down menu. Alternatively, to create a new one click the Add a New Account button. A popup window will open, where you can insert the URL of your website and paste the API key you copied from Yoast SEO earlier (step 4). Click on Yes, continue. The popup will close and the account will be created. In the next window, you will see the Test trigger option. Click on the Test trigger button to test it. After you click the button, you should see a 「We found a post」 message, with additional data (URL, title, post type, author name, list of categories, list of tags) from the latest published post on your website (see the image in the next step). In the new window with the post data, click on Continue. You will see a list of apps. Select or search for the one you want to connect to Yoast SEO Premium. In this case, we will connect with Twitter. Select the action you want to happen when the trigger is activated and click Continue. In this case, we select Create a Tweet. So, every time we post something new on the site, it will automatically be sent out in a tweet. Sign in to Twitter to connect the account to Zapier. Follow the instructions in the popup window that opens to complete the sign in process, and then click Continue. Note: you will need to be signed in your Twitter account so Zapier will be able to pick it up. Follow the steps in the popup window to complete the signing in process. After you are done signing in, the popup window will automatically close and you will see the Twitter account filled in your Zap creating window. Customize the Tweet by selecting the message, image and URL that will appear. You will need to click on each of the fields to reveal more options. Optional: Send the post to Twitter by clicking the Test & Continue button. This is an optional step. You can test if the trigger works by clicking the Test & Continue button. Alternatively, if you skip the test, click the Turn on Zap button. The Zap will be activated and it will also be connected to Yoast SEO Premium. When you go to the Yoast Integration window, you should see the message that Yoast was successfully connected to Zapier.

That』s how you can connect Yoast SEO to an app available in Zapier. We hope you』ll enjoy the time you save!

How to troubleshoot Zapier in Yoast SEO Premium

Rarely, you may encounter an error while working with this integration. In that case, you may find more information on how to fix the error in the article on troubleshooting Zapier in Yoast SEO Premium.

How do I noindex URLs?

How do I noindex URLs?

In some cases, you』d like to keep some posts or pages out of the search results. For example, your internal search results pages or your admin or login pages. You can read more about why you should noindex some posts and pages here. Yoast SEO provides multiple options for setting a URL or group of URLs to noindex. Here, you can read how to do this for various types of content.

Keeping your posts or pages out of the search results is a breeze with Yoast SEO. Do you want more technical SEO stuff done automatically in the background? Yoast SEO Premium makes sure your technical configuration rolls out the red carpet for search engines!

A warning upfront: Setting pages, posts or your site to noindex might have serious consequences for your rankings. So make sure you know what you』re doing! First, carefully determine which URLs you』d want to set to noindex.

Here』s a list of content types you can set to noindex with Yoast SEO:

Individual posts, pages, media or taxonomy itemsNoindex an individual news articleNoindex post types, categories, tags or other taxonomiesNoindex subpages of archivesNoindex an entire siteNoindex individual author pagesWhat about nofollow tags?Related posts

We』ll discuss these types and how to noindex them below.

Individual posts, pages, media or taxonomy items

The advanced section in the Yoast SEO meta box on the edit screen of the item allows administrators and editors to set custom robots information like noindex, nofollow, and other advanced robots settings.

If you don』t want to noindex an individual post, set the setting 『Allow search engines to show this … in the search results?』 to 『No』.

To allow authors access to this tab, go to SEO->General->Features and toggle the `Security: no advanced settings for authors` to 『Off』.

The layout may vary as the example above is from a default post type.

Noindex an individual news article

The Yoast News SEO plugin includes the ability to tell Google News not to index a specific news article. This option is found under the plugins section of the meta box in the 『Google News』 tab. Learn more about using the News SEO plugin in this article.

Noindex post types, categories, tags or other taxonomies

If you want to noindex a group of items, enable this feature using the steps below. By default, search pages and 404 pages will be set to noindex, follow. Log in to your WordPress website. When you』re logged in, you will be in your 『Dashboard』. Click on 『SEO』. On the left-hand side, you will see a menu. In that menu, click on 『SEO』. Click on 『Search Appearance』. The 『SEO』 settings will expand providing you additional options. Click on 『Search Appearance』. Select the tab that represents the content types, taxonomy or archive type you wish to exclude from the search results. We explain more about the Search Appearance settings and the different tabs here. Toggle the 『Show XYZ in search results?』 switch. To index the content, toggle the switch to 『Yes』. To noindex the content, toggle the switch to 『No』. Click 『Save Changes』.

Noindex subpages of archives

Google has gotten much better at paginated series, so this feature has been removed from Yoast SEO.

Noindex an entire site

Alternatively, you can noindex the entire site but it』s up to search engines to honor this request. We explain how to noindex an entire site in this article.

Noindex individual author pages

It』s also possible to noindex individual author pages. Read this article on how to noindex individual author pages to find out how.

What about nofollow tags?

Since Yoast SEO 14.4 it is possible to control individual links. Read more about the different link attributes or learn how to use the Yoast SEO link settings.

Nofollow tags are similar to noindex tags, as we describe in this article on meta robots tags. Nofollow tags tell search engines not to pass value through the links on that page. You can assign a nofollow tag to a post by clicking on the Advanced section of the Yoast SEO meta box on the page. There, select 『No』 for 『Should search engines follow links on this post. Selecting 『No』 will output a nofollow tag for the URL.

The default is 『Yes』, so by default, search engines follow links on posts and pages. This feature is not available on taxonomies like categories and tags and only works on the URL of the post/page. It will not add a nofollow tag to the links embedded in it.

If you are not sure if you should or should not use a noFollow please refer to this guide: Which pages should I noindex or nofollow?

Related posts

Developer information for robot meta tags

Error: Cannot redeclare yoast_breadcrumb()

Error: Cannot redeclare yoast_breadcrumb()

If you』re getting an error that looks like this:

Cannot redeclare yoast_breadcrumb() (previously declared in /home/require/public_html/wp-content/plugins/wordpress-seo/inc/wpseo-functions.php:96) in

Your theme or another plugin is including our breadcrumbs class, and not properly wrapping it in class_exists or function_exists wrappers. The part of the error above should normally point you at either a themes or plugins directory, telling you which plugin or theme is the culprit.

The breadcrumbs class in our plugin is maintained, whereas the breadcrumbs class shipping with your theme is probably out of date. So check with the creator of your theme and send them to this page.

I created the theme, what should I do to fix this error?

You should wrap the class and functions in class_exists or function_exists wrappers. Or, even better, you shouldn』t include it at all and just tell people to install our Yoast SEO plugin and use the breadcrumbs provided by our plugin as those are far more up-to-date and actually work with custom post types, custom post type archives, etc.

How to use the Semrush related keyphrases feature in Yoast SEO

How to use the Semrush related keyphrases feature in Yoast SEO

Yoast SEO makes finding related keyphrases easy! After you』ve done your keyword research, you can find and use the most relevant keyphrases with the powerful Semrush related keyphrases feature. As a result, you get a quick insight into the performance of related keyphrases, and in doing so, you improve your content! In this post, you』ll learn how to connect Semrush with Yoast SEO and use this great feature. 

Why should you use related keyphrases?

A focus keyphrase helps you keep your content on topic and keep it relevant for your users and search engines. But, a lot of times, focusing on a signed keyphrase can make your writing repetitive and unpleasant to read. So, using related keyphrases helps you make your writing more engaging while also increasing your chances to rank.

What is more, in some of your posts, you may cover multiple aspects of the same topic. In that case, it is great to add additional keyphrases and get your content to rank for multiple keyphrases.

The Semrush related keyphrases feature in Yoast SEO

Together with Semrush, we』ve built an integration that helps you find related keyphrases for your focus keyphrases in Yoast SEO. Before you get access to the related keyphrases, you will need to connect Semrush to Yoast SEO. If you don』t have a Semrush account yet, you can register while connecting Yoast SEO to Semrush.

Both free and premium Yoast SEO users have access to the Semrush related keyphrases. However, only premium users can add a related keyphrase from the list to their post with just one click. Using a free Semrush account will allow you to make up to 10 requests for related keyphrases per day. To get full access to the Semrush tools, you will need to upgrade your Semrush account.

How to use the related keyphrase feature in Yoast SEO

To start using this feature, follow these steps. Add a related keyphrase in the Focus keyphrase input field in the Yoast SEO sidebar/meta box. Click the Get related keyphrases button below the Focus keyphrase input field. You will see a pop-up window with one of these three scenarios: 1. If you already have a Semrush account, log in directly in the pop-up window (1) and then allow Yoast SEO to connect the accounts (3); or 2. If you don』t have a Semrush account, register and create one (2) and then allow Yoast SEO to connect the accounts (3); or3. If you are already logged into your Semrush account, allow Yoast SEO to integrate the accounts (3).To Log in and to Register, follow the instructions on the screen. Click the Approve button (3 in the image above) to integrate your Semrush account with Yoast SEO. Once you connect the accounts, the Semrush related keyphrases overlay window appears. Click on the country name to select a country and the language you want to see results for. A dropdown menu with more than 100 available countries and languages appears. Select the one you need, and then click the Select country button. Check the Volume and the Trend of the suggested keyphrases The volume column shows the average number of monthly searches for the analyzed keyword over the last 12 months. The trend column shows the interest of searchers in the related keyphrase over the last 12 months. Add the related keyphrase to your post (Yoast SEO Premium). If you are using Yoast SEO Premium, you can add a related keyphrase for Yoast SEO to analyze, by clicking the Add as related keyphrase button. You will immediately see the related keyphrase in the Yoast SEO Premium sidebar. Optimize your content for the related keyphrase you added (Yoast SEO Premium). Yoast SEO Premium will also give you feedback on the related keyphrase you added. Just like in the feedback for the focus keyphrase, you will see what you need to improve, as well as what you did well.

How to disconnect your Semrush integration

If you want to disconnect the Semrush account you connected to Yoast SEO, you can do it by following these steps:

Go to SEO -> General -> IntegrationsToggle the Semrush integration switch off. Click Save changes – This will remove the feature and the associated account.

If you want to reconnect the account (or add a new one), just toggle the SEMrush integration switch back on. Then, the feature will become available, and you will be required to sign in or sign up again.

Learn more about keyword research

The SEMrush related keyphrases feature makes it easy to discover new relevant keywords. But, are you eager to learn more about keyword research and its importance for SEO? We have a lot of articles that you can read! For example, you can start with these:

Keyword research for SEO: the ultimate guideHow to choose the right focus keyword7 keyword research mistakes you should avoidWhy focus on long-tail keywords?

How to add Facebook』s OpenGraph​ meta tags

How to add Facebook』s OpenGraph​ meta tags

Facebook』s OpenGraph metadata allows users to share web pages on Facebook. If you add OpenGraph meta tags to your posts and pages, Facebook will display a preview with images and an excerpt when a link to your site is shared. In this article, we』ll explore how to add OpenGraph meta tags to your site.

In Yoast SEO Premium, you get full control of your Facebook and Twitter shares! There is no guesswork with the social preview feature. By seeing exactly what your posts look like when you share them, you get the chance to improve your social media presence.

Related articles

Add Facebook publisher tags
Custom Facebook meta tags
Add Facebook author tags
Facebook sharing not working
No image when sharing

The Yoast SEO plugin makes it very easy to add Facebook』s Open Graph meta tags. This feature is enabled by default. Log in to your WordPress website. When you』re logged in, you will be in your 『Dashboard』. Click on 『SEO』. On the left-hand side, you will see a menu. In that menu, click on 『SEO』. Click on 『Social』. The 『SEO』 settings will expand providing you additional options. Click on 『Social』. Click on the 『Facebook』 tab. Toggle the 『Add Open Graph meta data』 switch.  To enable the feature, toggle the switch to 『On』.To disable the feature, toggle the switch to 『Off』. Customize your Open Graph tags. Customize your Open Graph tags by adding a default image for pages without images. If you have a non-static homepage, you can set the homepage Open Graph tags here, as well. Click 『Save Changes』.

How to edit OpenGraph tags on your post/page

If you want to edit the OpenGraph tags on your post or page, follow the steps in this article on how to set custom Facebook OpenGraph tags.

What are those article and time meta tags?

When you enable OpenGraph, Yoast will output some specific meta tags below. These tags are used by Facebook.

Note: If you are seeing dates in search engines it is coming from elsewhere. Please use this guide: Date appears in search results.