mercredi 29 avril 2015

Magento: remove tags from the header logo image - "Need file path"

What I'm attempting to do is to remove some <p> tags that wrap the header logo image which does not contain any text because I think they should not be there.

But this is throwing the following error when testing via the W3-validator.

Line 261, Column 216: Element p not allowed as child of element a in this context. (Suppressing further errors from this subtree.)

What file should I look in to locate line 261

I'm stuck. I've searched for hours and can't find the file-path to the file that contains the string I need to edit. I currently don't have access to link hints function so that out of the question.

Any suggestions would be highly appreciated.

Thanks a million Fish

Update: Code from header.phtml file regarding logo..

Here is some code regarding the logo from the header.phtml    <div class="header-wrapper <?php echo $hdr_style?>">
    <header>
        <?php if ( $config['design']['below_logo'] ) : ?>
        <div class="row clearfix">
            <div class="grid_12">
                <?php if ($this->getIsHomePage()):?>
                <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><?php echo $this->getChildHtml('theme_logo', false) ?></a></h1>
                <?php else:?>
                <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><?php echo $this->getChildHtml('theme_logo', false) ?></a>
                <?php endif?>

Aucun commentaire:

Enregistrer un commentaire