SEO and title tags

  • info@growsalesonline.co.uk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 weeks ago - 12 years 3 weeks ago #15200 by info@growsalesonline.co.uk
SEO and title tags was created by info@growsalesonline.co.uk
This was an issue for me and the solution below is straight from Tuan ...

Presently, if I have a course called Presentation skills in a category called Communication skills then when I link from a Joomla menu the title tag of the page would read - Presentation skills - communication skills.

I would to be able to change it to something like 'Presentation skills training course London, England'- from the menu item I can control the title tag and have it read as I want but the EB title tag approach overwrites the Joomla menu item title tag - can this be reversed?

So rather than using the EB titile tag approach I would like or use the Joomla menu title tag under the page display options.

The solution is ...

1. Open the file components/com_eventbooking/views/event/view.html.php


2. Find the code below (which handle title of the page) and remove it

$pageTitle = JText::_('EB_EVENT_PAGE_TITLE');
$pageTitle = str_replace('[EVENT_TITLE]', $item->title, $pageTitle) ;
$pageTitle = str_replace('[CATEGORY_NAME]', $categoryName, $pageTitle) ;
$document->setTitle($pageTitle);

This allows you to link to individual courses from a Joomal menu and have full control over the title tag that appears

Hope this helps
Last edit: 12 years 3 weeks ago by info@growsalesonline.co.uk.
The following user(s) said Thank You: JayBEE

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #15209 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: SEO and title tags
Thanks Tony for posting the solution

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc