test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • nilzaris Friend
    #932829

    Hi
    I tried to show a icon beside a menu item as shown in: https://www.joomlart.com/video-tutorials/t3-framework/megamenu-configuration
    But this don’t work. What can I do for to show a icon in only one item?
    The site is http://www.thefoodspace.com

    pavit Moderator
    #932903

    Hi there

    Let’s say you want to show the home icon instead to show the home text

    Then you need to add new code to your template using custom.css file

    add this to the file :

    .navbar-default .navbar-nav > .item-home {
      text-indent: -9999em;
      position: relative;
      padding-left: 0;
      padding-right: 70px;
      width: 48px;
      text-align: center;
    }
    .navbar-default .navbar-nav > .item-home .fa {
      text-indent: 0;
      position: absolute;
      left: 0;
      top: 12px;
      width: 48px;
      height: 48px;
      line-height: 50px;
      font-size: 23px;
      margin: 0;
    }
    .navbar-default .navbar-nav > .item-home .dropdown-menu ul li a {
      text-indent: 0;
    }

    Then go to template manager / edit your template / megamenu button at top and add the item-home in the extra class field and fa fa-home into icon field as showed in image below.

    You can see result in second image

    Best regards


    1. Screenshot_15
    2. Screenshot_16-2
    nilzaris Friend
    #933794

    No. I need a icon next to the word. I need to install a ecommerce and for this I need a shopping cart icon…I send a sample.


    1. icono_bootstrap
    pavit Moderator
    #933799

    Then edit your menu item using megamenu feature and add in icon the font awesome icon corresponding to the icon cart

    fa fa-shopping-cart


    1. Screenshot_10-5
    2. Screenshot_11-6
    nilzaris Friend
    #934244

    Thanks! now is good.! the problem was the bootstrap icon I think, because the nomenclature is different. You tell me "fa fa-shopping-cart" of Font Awesome and I was using a Bootstrap "Glyphicon" with "glyphicon glyphicon-shopping-cart", although would be "Icon Glyphs" as you show in video of megamenu configuration. Although I do not know very well the difference, the nomenclature is totally different, that is called different icons.
    Thanks you very much.

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 4 replies, has 2 voices, and was last updated by  nilzaris 8 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum