Sharing is helping.

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


    Home Forums Theme Forum HelloCoco & HelloCoco iPhone Home menu item not blck when active

    This topic contains 4 replies, has 2 voices, and was last updated by  Anonymous 6 years, 1 month ago.

    Viewing 5 posts - 1 through 5 (of 5 total)
    • Author
      Posts
    • #15812

      Anonymous

      There is a CSS issue in your demo where the “Home” menu item background is not black when active on the homepage. Any suggestions?

      Kev

      #15813

      Anonymous

      It seems to be an issue with making the home page active.

      #15814

      Anonymous

      Hi, no, it’s a javascript code you have to add.
      Go to: skinfrontenddefaulthellococojscustom.js

      add this:

      url=location.pathname;
      if (url==’/hellococo/’ || url==’/hellococo/index.php’)
      jQuery(‘#nav li:first’).addClass(‘active’);

      #15815

      Anonymous

      Yes! Great! For others, just make sure this code is placed within js statement, not at the end of the file. You’ll also need to change “Hellococo” to the base URL for every language or store you have.

      #15816

      Anonymous

      :D

      Cheers!.-

    Viewing 5 posts - 1 through 5 (of 5 total)
    Reply To: Home menu item not blck when active
    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="">