Last active
July 12, 2017 17:22
-
-
Save ravixp/2d08707aebafedce1e29d6ff08c5a1c8 to your computer and use it in GitHub Desktop.
Magento 1: Remove the <ul> tag from the static block for the custom header links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $headerCustomLinks = $this->getLayout()->createBlock('cms/block')->setBlockId("header-links")->toHtml(); | |
| if(substr($headerCustomLinks, 0, 4)=="<ul>"){ | |
| $headerCustomLinks = substr($headerCustomLinks, 4); | |
| } | |
| if(substr($headerCustomLinks, -5)=="</ul>"){ | |
| $headerCustomLinks = substr($headerCustomLinks, 0, -5); | |
| } | |
| ?> | |
| <ul class="header-links"> | |
| <?php echo $headerCustomLinks; ?> | |
| </ul><!-- header-links --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment