FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Metadata Tip

Feed 0 posts, 1 voices

Avatar
79 posts

Theres a way to make the metadata appear in the title without making everything sloppy.

For example, I want my page name is be about.php — I got that,
but I like the title to appear like:
MySite – About – “Keywords Here”

Here’s what you do

Go to layouts, Normal,
Put this in your title:

  <title>Site Name | <?php echo $this->title(); ?> | <?php echo ($this->description() != '') ? $this->description() : 'Default description goes here'; ?></title>

you can change the Description to Keywords if you like, just copy it out of the meta section, thats real cool!