Fork me on GitHub
Current releases are 2.1.1 (2 Aug 2014) and 2.0.18.13 (5 Aug 2014)
Ready for 2.1? Find out if your favorite plugins are compatible.
The 2.0 branch will no longer receive updates after Dec 2014.

how to add meta tag for custom pages (title , description, keywords)

ChanuxChanux Admin of Geek.lk ✭✭
edited February 2012 in Vanilla 2.0 Help

im using custom page plugin and now i want to add meta tags for my custom page. i found this one for title tag

$this->Head->Title('Demo Title)');

it is working now. but i want to add description & keywords tags. how can i do it. help me. when i try

$this->Head->description('Demo Title)');

page bonk

Best Answer

  • x00x00 MVP
    edited February 2012 Answer ✓

    $this->Head->AddTag('meta',array('name'=>'keywords','content'=>"some,keywords"));

    I'll let you figure out the rest, becuase I think you have a nagging nature, and am not convinced you are really interested in learning, going on previous history. We are not here to babysit you.

    Aolee

Answers

Sign In or Register to comment.