Replace pixellove font with icons

GK User
Thu Sep 18, 2014 8:41 am
Is there a way to replace pixellove font shown in menu on homepage with icons?
User avatar
Junior Boarder

teitbite
Thu Sep 18, 2014 8:57 am
Hi

Of course. Try use a code like this instead:

Code: Select all
.gk-icon-dinner-set-solid:before {
    background: url("../images/spoon.png") repeat scroll 0 0 transparent;
    content: "";
    display: inline-block;
    height: 60px;
    width: 60px;
}
User avatar
Moderator

GK User
Fri Sep 19, 2014 7:44 am
Thank you! That worked perfectly.
User avatar
Junior Boarder

GK User
Thu Oct 16, 2014 3:24 pm
Dear Titebite,

where (template.css, style.css?) do I have to change the code you wrote at the top?

thanks for help,

claudia
User avatar
Gold Boarder

teitbite
Fri Oct 17, 2014 9:06 am
Hi

Any css additional or modified code You need to add to override.css and make sure override is enabled in template settings. You need to use a different class names to refere to different icons, You can find it by looking into html and class="" value.
User avatar
Moderator

GK User
Mon Oct 20, 2014 6:56 pm
thanks Teitebite,

I tryed this code in my override css:

.gk-icon-dinner-set-solid:before {
background: url("../images/icon/icon_besprechung.png") repeat scroll 0 0 transparent;
content: "";
display: inline-block;
height: 60px;
width: 60px;
}
and after that the whole stylesheet seems destroyed... whoooo I was really shocked - I deleted it and than everything was back again - so my question What was wrong? can you please help me?

thanks for help sandra
User avatar
Gold Boarder

GK User
Mon Oct 20, 2014 6:58 pm
This helped me a lot as I needed the same, but one follow up question, how to make these custom icons responsive instead of the static icon size?

Thanks


Heiko

teitbite wrote:Hi

Of course. Try use a code like this instead:

Code: Select all
.gk-icon-dinner-set-solid:before {
    background: url("../images/spoon.png") repeat scroll 0 0 transparent;
    content: "";
    display: inline-block;
    height: 60px;
    width: 60px;
}
User avatar
Fresh Boarder

teitbite
Wed Oct 22, 2014 10:18 am
Hi

@eversberg if this destroyed the stylesheet, than You have probably inserted it in a wrong place. Add it to override.css at the evey end of this file and show me site than.

@iaweb2 That's not going to be easy, but You may try percentage values and resized background option:

Code: Select all
.gk-icon-dinner-set-solid:before {
height: 10%;
width: 10%;
background-size: 100% auto;
}
User avatar
Moderator

GK User
Thu Oct 23, 2014 5:11 pm
thanks teitebite - it works now!

best regards, eversberg
User avatar
Gold Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.