Home Forums WoodMart support forum There is one conundrum – regarding mega menu of categories section

There is one conundrum – regarding mega menu of categories section

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #116832

    ab
    Participant

    There is one conundrum – regarding mega menu of browse categories section of navigation. When I click on it, it brings up the dropdown menu (“Category” item in Menu Settings) with the icons right.

    My problem is I have 5 links with category, and there is one “Custom Link” but I don’t know how to put icons on that custom link. Other 5 links, I uploaded the SVG icons from “Product categories”

    Please refer to my website for the links. Can u please tell me how to overcome this problem.

    Attachments:
    You must be logged in to view attached files.
    #116896

    Hello,

    You can insert icon from https://fontawesome.com/v4.7.0/icons/ into menu item http://prntscr.com/n7coaq for example cloud http://prntscr.com/n7coxt

    Best Regards

    #116982

    ab
    Participant

    Hi,

    Works like a charm – but sadly my icon is shoe icon – but I guess there is no shoe icon on the fontawesome website. Can you please tell me other work around.

    Thanks in advance

    #117022

    Hello,

    You can add a class to the menu item and set the image as the background before. https://xtemos.com/docs/woodmart/create-menu-2/

    As soon as you add the class, let me know I will help with custom CSS if you need.

    Best Regards

    #117134

    ab
    Participant

    hi,

    I added icon_shoes.svg icon to the media, and then created following class in Custom CSS.

    .shoe-icon {
    background-image: url(“http://properties.mn/portfolio/shinesongolt/wp-
    content/uploads/2019/04/icon_shoes.svg”);
    }

    And then added the class to the mega menu as per image. But when I added it, the image became pattern in the background.

    Attachments:
    You must be logged in to view attached files.
    #117162

    Hello,

    Please specify the menu and menu item.

    Best Regards

    #117171

    ab
    Participant

    On the homepage – browse categories > the last mega menu without the icon. Also in the menu settings – last menu of category. Since it is written in mongolian language. Difficult to explain.

    Attachments:
    You must be logged in to view attached files.
    #117191

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .vertical-navigation .item-level-0.menu-item-has-children:last-child>a:before {
    background-image: url(http://properties.mn/portfolio/shinesongolt/wp-content/uploads/2019/04/icon_men.svg);
    	background-repeat: no-repeat;
    background-position: top left;
    	width:20px;
    	height:20px;
    	background-size:contain;
    	content:'';
    	margin-right:5px;
    }
    .menu-categories-container .site-mobile-menu li.menu-item-has-block:last-child > a{
    background-image: url(http://properties.mn/portfolio/shinesongolt/wp-content/uploads/2019/04/icon_men.svg);
    	background-repeat: no-repeat;
    background-position: top left;
    	width:20px;
    	height:20px;
    	background-size:contain;
    	content:'';
    	margin-right:5px;
    }

    I do not see the class which you have added. That is why I have assigned the styles to the last child element. I am trying the image URL, you have provided it does not work. Please replace with the valid one.

    You need to open your SVG icons file with some editor like Sublime Text or default system text editor and add width=”20″ height=”20″ attributes to your <svg> tag like it is shown: http://prntscr.com/m4n0qw
    Then you will need to re-upload your icons in WordPress Dashboard.

    Best Regards

    #117216

    ab
    Participant

    Millions of thanks for the reply. I am kinda lost here. I am not that much technical. Can you access my backend and fix it? Thank you in advance.

    Attachments:
    You must be logged in to view attached files.
    #117354

    Hello,

    I have added the code. Now it works.

    Best Regards

    #118014

    ab
    Participant

    Thank you very much. Works like a charm.

    #118042

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘There is one conundrum – regarding mega menu of categories section’ is closed to new replies.