Jump to content

[SOLVED] Change In Category Meta description


Recommended Posts

Hello everyone,

I ask your help to figure out which files are involved to create the various meta header.tpl in addition to the theme.

We'll explain the title tag in the pages of the category is changed by adding at the end of the title parentheses with the page number where you are eg. (2) etc.. Now I would like to add 2 to that page and the word in more sftuttare this method of paging and also insert it in the meta description but I do not know where to intervene.

 

Thanks to all

Link to comment
Share on other sites

I solved by changing the file classes / tools.php at line 661 by adding the following code:

 

// Paginate meta_description

if (!empty($row['meta_description']))

$row['meta_description'] = $title.$row['meta_description'].(!empty($page_number) ? ' Ti trovi nella '.$page_number.' pagina. ' : '');

 

else

$row['meta_description'] = $row['name'].(!empty($page_number) ? ' Ti trovi nella '.$page_number.' pagina. ' : '');

 

if (!empty($title))

$row['meta_description'] = $title.(!empty($page_number) ? ' Ti trovi nella '.$page_number.' pagina. ' : '');

 

 

if (empty($row['meta_description']))

$row['meta_description'] = strip_tags($row['description']);

 

 

In this way paging occurs even in the meta description and gives us the opportunity to tell google pages that are different.

 

I hope that it may be useful to someone else.

 

Hello

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...