View Single Post
  #81  
Old 12-07-2010, 08:20 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Smart Template v4.4.x

Hi Masada, thank you for your comments

You can add keywords before and/or after the title tags with this quick hack... But be warned, they will appear everywhere.

include/templater/plugins/function.get_title.php

Before...
Code:
return '<title>' . $title . '</title>';
Insert...
Code:
// Custom title keywords start $title_before = "BEFORE KEYWORDS"; $title_after = "AFTER KEYWORDS"; $title = $title_before . " " . $title . " " . $title_after; // Custom title keywords end

While you're at it, I'd advise changing this line...
Code:
$title = str_replace(array("\n", "\r"), array('', ''), trim(implode(' :: ', $tmp)));
to...
Code:
$title = str_replace(array("\n", "\r"), array('', ''), trim(implode(' - ', $tmp)));
(no need for the silly double colons)
__________________
xcartmods.co.uk
Reply With Quote