Displaying blog title in the page title for SEO

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
delve2013
Forum Members
Forum Members
Posts: 91
Joined: Thu Jan 31, 2013 4:23 pm

Displaying blog title in the page title for SEO

Post by delve2013 »

Can someone help me, I would like to display my blog article title inside my page title on the blog article detail page.

At the moment the detail article page displays the page title like this:

Blog | Website Name

For SEO purposes I would like the title to be in the following format:

Some Blog Article Title | Website Name
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Displaying blog title in the page title for SEO

Post by velden »

Asked many times before but can't find in quickly

PAGE template:

Code: Select all

{title assign='title'}
<__html ...>
  <head>
    <title>{$title} | {sitename}</title>
Note the difference between {title} and {$title}

Then somewhere in Blog detail template:

Code: Select all

{assign var='title' value=$entry->title}
Assuming $entry is blog entry and it has title property (don't know Blog module myself)
Post Reply

Return to “Modules/Add-Ons”