
Sometimes this can get confusing and developers will accidentally, or carelessly, add a page title tag to one of the include files resulting in multiple title tags when the web page is compiled. But which one is it? Above or below?Īnother scenario might be a website that requires multiple include files to make up a webpage.
#Serp seo suggester for webpage code
If you are writing your PHP statement in a page template that is also used by other webpages you'd need to place your code either above or below the native WordPress title tag. Let's say, for example, you'd like to write some PHP code to dynamically generate your page titles from variables, such as location and keywords. The screenshot below might look familiar to WordPress users. The wp_title function calls the page title defined in a page or post. Out of the box, a WordPress theme is going to have a title tag in the head of the header.php file, most likely closer to the opening head tag. The first scenario that comes to mind is WordPress. Why would a web page have multiple title or meta-description tags? In the meantime, let's address a few questions. Now that we have the experiment all setup we wait for Google to index and see what is displayed in the search engine results pages (SERPs). Notice that the first page title is represented again. This tool is also available in Google Webmaster tools.Īnd here is screenshot of my Firefox browser. Notice that the first page title tag is represented. I also wanted to take note of what Google's Structured Data Testing Tool would show. Make note that Google allows 500 fetches in a given week per Google account. All you have to do is enter the filename of your new file and click Fetch. In order to speed up the indexing time, I used Google Webmaster Tools to tell Google to fetch and index my new file.īelow is a screenshot of Google Webmaster Tool's Fetch tool. I started with a brand new HTML file and after it was prepared, I uploaded it to my web server.

I wanted this test to be independent of the rest of my site and I wanted this to be the first time Google indexed this file rather than experimenting on an existing webpage. A screenshot of the head section is represented below: To make it easy, I gave the title and description tags values that represent their order in the code. I uploaded a simple HTML file to my web server which included two title tags and two meta description tags. I'm sure there are a few other related questions that I will try to forecast and address, but if I am not able to read your mind, please submit a comment and I'll address each question one as quickly as possible. Have you ever wondered what would happen if you had multiple page title tags in the head of your webpage? How about multiple meta description tags? In this article, I am going to show you the results of my Google search experiment.
