In your website’s admin area, find the SEO menu item on the left. (It should be near the bottom, below Settings.) Hover over the SEO menu item (or click on it) and then click the Titles & Metas submenu item.
Click the Post Types tab. Note that there are three sets of fields here: one for Posts, one for Pages and one for Media. You’re probably interested in Posts and Pages.
Under the Posts section, notice that the Title template field will probably say something like %%title%% %%page%% %%sep%% %%sitename%%. This might look kind of crazy and confusing to you, so I’ll give you an example of what this might work out to. If your company is called Ben Franklin Labs and the visitor is viewing, say, your About page, the title might work out to this: “About | Ben Franklin Labs.” That cryptic %%sep%% stands for separator and the default appears to be “|” (called a pipe character). In the next step we’ll change the title from something like “About | Ben Franklin Labs” to “About | Grand Rapids Web Design and Web Development | Ben Franklin Labs.”
For my example, I chose to add “Grand Rapids Web Design and Web Development” because those are terms I’d like my entire site to rank for in Google, and because Ben Franklin Labs actually is a web design/development company. If you’re, say, a wedding photographer, you might like to use “[Your Town] Wedding Photographer.” Once you’ve decided what phrase you’d like to insert into your title, change the Title template field under the Posts section from %%title%% %%page%% %%sep%% %%sitename%% to %%title%% %%page%% %%sep%% Your Phrase Here %%sep%% %%sitename%%. (I made the new part bold.)
Repeat step 5 for the Pages section.
Verify that your changes worked by viewing at least one blog post and at least one page. Your new phrase should appear in the title attribute for both.
Do you struggle to get started with Ruby on Rails testing?
Check out my free Ruby Testing Micro-Course, which includes: