hi
where is the setting that adds the camera-like icon the left of the category names in this menu -- as in this screenshot: https://gyazo.com/673ab18a21d512ceaade794f32d2dbd0
I can add a font-awesome icon but cant find where to remove the default camera icon.
thanks -- nick
6 answers
Hi Nick,
I can add a font-awesome icon but cant find where to remove the default camera icon.
To remove this icon please follow steps below:
Open the file: app\design\frontend\Ubertheme\megamall\Ubertheme_UbMegaMenu\web\css\source\module\_vertical.less, navigate to the line 108 and add the new line in red as follows:
span.menu-title {
position: relative;
margin-left: 50px;
&:before {
content: “”;
position: absolute;
top: 0;
left: -35px;
width: 25px;
height: 20px;
background-image: url(‘../images/icon-megamenu.png’);
background-repeat: no-repeat:
display: none;
}
Once done, please complie LESS to CSS as instructed in one of your recent ticket.
Please let me know how it goes then.
Best Regards,
Ziven.
hi Ziven,
My developer says we do not have this class.
Can you please recommend another solution?
thanks -- Nick
sorry -- my developer found the class…. eventually.
But he has since made changes and the icon remains.
What else can you recommend please?
thanks -- nick
Hi Nick,
Please follow steps below to see the changes:
You should back up your site first. Once done, you access your server via SSH and navigate to your Magento 2 folder, then run the following commands one by one:
Step 1: php bin/magento maintenance:enable
Step 2: rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/frontend/Ubertheme/megamall/*
Step 3: php bin/magento setup:static-content:deploy -t Ubertheme/bookshop -f (Make sure you are using developer (or default) mode)
Step 4: php bin/magento cache:flush
step 5: php bin/magento maintenance:disable
Step 6: clear your browser cache
Further, I see your developer did add icon in the admin. That’s why the icon is still in place. You can delete it if you choose to.
Best Regards,
Ziven.
Hi Ziven
adding the icon was not the issue. It was removing the camera icon that was not working according to your instructions.
But I think we worked it out ourselves.
Thanks again for your input -- it was really a good start for us.
Hi Nick,
We’re sorry for getting back this late as we’re off in the weekend.
We’re glad that you could sort things out at your end.
If you run across any technical issue or bugs, please submit a new ticket, we will help you out within the scope we can handle.
Regards,
Ubertheme team