Mecha CMS

Code snippet collection for developers.

Custom Title Separator

Table of Content

Set your own document title separator.

Before 

Example:

<title><?php echo $site->trace; ?></title>

Result:

<title>Article Title · Site Title</title>

After 

Example:

<title><?php echo $site->trace(' | '); ?></title>

Result:

<title>Article Title | Site Title</title>