I want text in <h1>
tag to match page title, but without store prefix.
I'm getting page title like so:
<h1>
<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?></h1>
How can I get page title without store prefix, or how can I retrieve store prefix option?
Thank you!
Best Answer
The quick and dirty way to do it.
To cut prefix:
To cut suffix: