How To Add Icon at Menu..

GK User
Thu Jun 16, 2011 12:50 pm
Dear Gavick,

How to add Icon in front of Menu (Menu Icon) for Cherry Design template?

Thank You

Regards,
Andi
User avatar
Fresh Boarder

GK User
Thu Jun 30, 2011 12:22 pm
can anybody help me? i really need this..
thank you
User avatar
Fresh Boarder

teitbite
Fri Jul 01, 2011 11:44 am
Hi

This menu do not support icons. You will have to show it using css. Please show me the exact place for it.
User avatar
Moderator

GK User
Sat Jul 02, 2011 11:43 am
Hi Teitbite, thank you for your reply.

This the exact place (pic)


dummy 01.jpg
User avatar
Fresh Boarder

teitbite
Sat Jul 02, 2011 3:35 pm
Hi

The code to place the image next to menu item is:

Code: Select all
div.gk-menu > ul.level0 > li > a#menu101 {
    background: url("../images/img.png") no-repeat scroll 0 0 transparent;
}


Please use the firebug to see the name of every menu item ( menu101 ).

The icon for a header title is a little more complicated, because every title will have the same icon. There is no way to determine which tite it is. So the solution can be a css code placed in for example mod_blank with different icon for each page. The code would looks similar to:

Code: Select all
.item-page > h2 {
    background: url("../images/style1/line.png") repeat-x scroll 0 0 transparent;
    padding-left: 20px;
}


This will remove the underline which is placed using the same solution.
User avatar
Moderator

GK User
Mon Jul 11, 2011 10:18 am
Hello Teitbite.. Thank You for your response

I'm sorry, in what file i can find:
div.gk-menu > ul.level0 > li > a#menu101
div.gk-menu > ul.level0 > li > a#menu102
etc?

Thank You
User avatar
Fresh Boarder

teitbite
Mon Jul 11, 2011 11:32 am
Hi

It's not in the file. You need to add it. The best place is override.css. Remember to allow using of this file in template settings.
User avatar
Moderator

GK User
Mon Jul 11, 2011 4:32 pm
Yes Teitbite, override.css works! thank You :woohoo:

but.. i've got few another problem:

1. how to adjust the icon (size, position etc) like in my pic ?
dummy_icon.jpg


2. how to make icon interact with "mouse hover"?

3. in override.css if i want to remove "image background", what code is it to insert?

Thank You!
User avatar
Fresh Boarder

teitbite
Tue Jul 12, 2011 4:21 pm
Hi

About icon size, You need to use an exact icon size it should be.

Positioning can be made with no-repeat scroll 0px 0px transparent; values of the code.

Icon will be linking if You attache it to <a> and make a room for it with padding-left value.
User avatar
Moderator

GK User
Sat Jul 23, 2011 7:07 pm
Thanks Teitbite! sorry for the late reply :)
i'll try it
User avatar
Fresh Boarder


cron