Sharing is helping.

We offer you this space to share your knowledge about Magento and learn from our experienced customers.

    Home Forums Theme Forum HelloCanvas & HelloCanvas iPhone Make link active in top.phtml

    This topic contains 3 replies, has 3 voices, and was last updated by  Anonymous 6 years, 6 months ago.

    Viewing 4 posts - 1 through 4 (of 4 total)
    • Author
    • #14772



      I placed this line of code in the top.phtml file;

      <li class="testing <?php echo !$_anyActive ? 'active' : '' ?>"><a href="<?php echo $this->getUrl('testing')?>" style="z-index:999999999;"><span><?php echo $this->__('Testing') ?></span></a></li>

      But the link is always active… So, I removed ‘active’ and now when it’s clicked, it is not active.

      How do I make this link active only when it is clicked and navigates to that page?

      Thanks in advance,




      I would also love to know how to do this…



      Hi Chris,

      Have you had any joy?



      I also want to know this?


    Viewing 4 posts - 1 through 4 (of 4 total)
    Reply To: Make link active in top.phtml
    Your information:

    <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">