Post by fierceviper » Thu Apr 13, 2017 5:37 am

I would like to change the title tag for certain pages like contact us where you can't edit it from the admin page. Is there a way that I can change the tag in the code manually to what I would like?

New member

Posts

Joined
Sun Jan 15, 2017 9:32 am

Post by oc-extensions » Thu Apr 13, 2017 6:43 am

Hi,

To edit title for e.g contact page ( index.php?route=information/contact ) you have to modify language file catalog/language/[your_language]/information/contact.php

In language file will see

Code: Select all

$_['heading_title']  = 'Contact Us';
change to

Code: Select all

$_['heading_title']  = 'Add here title you want';
Have a nice day,
OC-Extensions.com Team

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm

Post by fierceviper » Thu Apr 13, 2017 6:59 am

If I do that it will change it in the actual page as well. I just want it to change the title tag (shown on the tab)

New member

Posts

Joined
Sun Jan 15, 2017 9:32 am

Post by oc-extensions » Thu Apr 13, 2017 7:10 am

Hi,

If you want to change only title tag then in catalog/controller/information/contact.php find line

Code: Select all

$this->document->setTitle($this->language->get('heading_title'));
and change to

Code: Select all

$this->document->setTitle($this->language->get('heading_title_custom'));
Of course now you have to modify and catalog/language/[your_language]/information/contact.php to add

Code: Select all

$_['heading_title_custom'] = 'OC-Extensions.com team  answered to my questions and now i know how to add this awesome title'; 
Of course use proper title

Have a nice day,
OC-Extensions.com Team

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm
Who is online

Users browsing this forum: No registered users and 42 guests