1

What's the best way to add some text (e.g. [staging], [dev], ...) to the end of the header title on all pages? I'm thinking of some "layout" event to listen to where I can:

$observer->getLayout()->getBlock('head')->setTitle($originalTitle . ' [staging]');

But which one?

2

To add suffix to your store title tags go to System > Configuration > Design > Html Head.Here you can see "Title Suffix" you can give your title suffix here. Which will add your given suffix on all pages on website after your title.

0

core_block_abstract_to_html_after should work - see this answer for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.