Pagetitle
Permalink 3 users found helpful
I'm editing a template and need to output the page-title at a specific region of the page.
How can I achieve this?
How can I achieve this?
Works well, thank you! (:
Nice! this is slick, Thanks!
Thanks, this is very helpful!
If your using the page title to echo out a class name, this works better:
<?php echo $c->getCollectionHandle() ?>
That way, if for instance, you were on an "About" page, and you wanted to echo that as a class somewhere in the document. it would appear as "about"
Example:
<div class="<?php echo $c->getCollectionHandle() ?>">
<?php echo $c->getCollectionHandle() ?>
That way, if for instance, you were on an "About" page, and you wanted to echo that as a class somewhere in the document. it would appear as "about"
Example:
<div class="<?php echo $c->getCollectionHandle() ?>">