Menu icon

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Aug 04, 2013 8:26 pm
Reply with quote
Report this post
Hello all!

First of all i followed this tutorial "How to Add Custom Icons to Joomla Menu Items?" http://www.gavick.com/magazine/how-to-add-icons-to-joomla-menu.html but when i set add Menu Title to OFF the icon doesn´t appear.

The website is http://www.vimistore.es

Regards
User avatar
Expert Boarder

GK User
Sun Aug 04, 2013 8:36 pm
Reply with quote
Report this post
Hi, because since we used plg_gkextmenu.zip plugin this tip won't help :(
so you have to use icons added using background-image property, each menu item has its own ID so it's simple to add icons.
User avatar
Platinum Boarder

GK User
Sun Aug 04, 2013 10:54 pm
Reply with quote
Report this post
Hello Pawel,

I don´t understand your explanation. Then how i add it?. Could you tell me an example,please?
User avatar
Expert Boarder

GK User
Wed Aug 07, 2013 8:52 pm
Reply with quote
Report this post
Hello!

I´m triying set the icon a it doesn´t show the home icon.Also i tried add the following code and without result:

Code: Select all
.gkMenu > ul > li > a#menu101 { background:url(../images/home.png); }
User avatar
Expert Boarder

GK User
Thu Aug 08, 2013 6:29 pm
Reply with quote
Report this post
I have question have you tried to add icons using Menu Manager
icon.jpg


Because it works for main menu items.
icon-2.jpg
User avatar
Platinum Boarder

GK User
Thu Aug 08, 2013 6:35 pm
Reply with quote
Report this post
It works only for specyfic Menu Item Types not all.
1) Articles » Featured Articles
2) Articles » Category List
3) Articles » Single Article


NOT WORK with "External URL"

I suggested to use css only when classic method won't work.
User avatar
Platinum Boarder

GK User
Thu Aug 08, 2013 6:41 pm
Reply with quote
Report this post
You can try this

Code: Select all
a#menu101 { background: url(http://www.vimistore.es/images/home.png) no-repeat;}



I suppose that you have added wrong path to image , that's why.
User avatar
Platinum Boarder

GK User
Thu Aug 08, 2013 7:20 pm
Reply with quote
Report this post
Hello Pawell!

Pawel F wrote:I have question have you tried to add icons using Menu Manager
icon.jpg


Because it works for main menu items.
icon-2.jpg


Yes,i tried it.I Added the icon using that way. Also I set NO on "Add menu title" but it didn´t show the icon.

You can try this

CODE: SELECT ALL
a#menu101 { background: url(http://www.vimistore.es/images/home.png) no-repeat;}



I suppose that you have added wrong path to image , that's why.


I added the code but the tittle appears. When i apply the "Add menu title" to NO. the icon doesn´t show again.

The site is http://www.vimistore.es/
User avatar
Expert Boarder

GK User
Thu Aug 08, 2013 8:54 pm
Reply with quote
Report this post
Ok, I get it, you want to have "home" without home label only with icon
User avatar
Platinum Boarder

GK User
Thu Aug 08, 2013 8:58 pm
Reply with quote
Report this post
I have solution for you

Code: Select all
a#menu101 { background: url(http://www.vimistore.es/images/home.png) no-repeat; width:36px;font-size:0;}



You will get this
User avatar
Platinum Boarder

GK User
Thu Aug 08, 2013 10:25 pm
Reply with quote
Report this post
Perfect!!!

Many thanks!!!
User avatar
Expert Boarder


cron