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
- This topic has 11 replies, 2 voices, and was last updated 6 years, 4 months ago by
Elise Noromit.
-
AuthorPosts
-
April 4, 2019 at 3:49 am #116832
abParticipantThere 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.April 4, 2019 at 10:16 am #116896
Elise NoromitMemberHello,
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/n7coxtBest Regards
April 4, 2019 at 2:26 pm #116982
abParticipantHi,
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
April 4, 2019 at 5:58 pm #117022
Elise NoromitMemberHello,
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
April 5, 2019 at 7:07 am #117134
abParticipanthi,
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.April 5, 2019 at 9:07 am #117162
Elise NoromitMemberHello,
Please specify the menu and menu item.
Best Regards
April 5, 2019 at 9:38 am #117171
abParticipantOn 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.April 5, 2019 at 11:56 am #117191
Elise NoromitMemberHello,
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
April 5, 2019 at 1:39 pm #117216
abParticipantMillions 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.April 6, 2019 at 8:29 am #117354
Elise NoromitMemberHello,
I have added the code. Now it works.
Best Regards
April 10, 2019 at 10:50 am #118014
abParticipantThank you very much. Works like a charm.
April 10, 2019 at 1:10 pm #118042
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
The topic ‘There is one conundrum – regarding mega menu of categories section’ is closed to new replies.
- You must be logged in to create new topics. Login / Register