Magento Forum - UK Magento Forum (Unofficial)

An unofficial but dedicated Magento Forum for Magento Users, Designers and Developers

Remove writing “text/x-generic header.phtml PHP script text"

A forum to discuss Magento development and coding

Remove writing “text/x-generic header.phtml PHP script text"

Postby raydona » Thu May 19, 2016 2:09 am

I removed the Welcome Message bar by commenting out code in file: app/design/frontend/my_package/default/template/page/html/header.phtml

<!-- <div class="header-language-background">
<div class="header-language-container">
<div class="store-language-container">
<?php echo $this->getChildHtml('store_language') ?>
<?php echo $this->getChildHtml('currency_switcher') ?>
<p class="welcome-msg"><?php echo $this-> getChildHtml('welcome') ?> <?php echo $this-> getChildHtml('accountLinks') ?></p>
</div> -->

Instead of Welcome message and bar I see "text/x-generic header.phtml PHP script text" in its place. How do I remove this piece of writing? I've tried altering empty.phtml in /app/design/frontend/theme/default/template /page/empty.phtml but does not work. All help will be greatly appreciated.
Posts: 5
Joined: Thu Jun 18, 2015 4:36 pm

Return to Magento Developers