changing frontpage gkIcons

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
Mon Jun 08, 2015 10:15 pm
Reply with quote
Report this post
I love the function of frontpage elements "gkIcons" on the Simpliciy template. Can I put my own icons in somewhere for the image and roll-over images?
User avatar
Junior Boarder

GK User
Tue Jun 09, 2015 6:07 am
Reply with quote
Report this post
Sample image css looks this way:
Code: Select all
.gkRocket {
   background-image: url('../images/style1/gkrocket.png');
}
.gkRocket:hover {
   background-color: #4c90fe;
}

Using override.css and your own sprites you can create unimited number of icons.
User avatar
Moderator

GK User
Fri Jun 26, 2015 4:23 am
Reply with quote
Report this post
Thank you Cyberek, this worked great! I found the demo images in the template directory -- for example gkcrop.png. I was able to make similar files that are 2 images stacked in the single .png file.

I uploaded the image files to the Media Manager. I put the css code you suggested in the Template Manager / gk-simplicity / Advanced Settings / in the Custom CSS Code text-box. I put in 3 CSS code snippets to replace gkrocket.png, gkmobile.png, and gkrocket.png.

At first my files were too big and looked funny, but I shrunk them to 126 × 252 and they worked fine!

Thanks for the help!
User avatar
Junior Boarder

GK User
Fri Jun 26, 2015 7:03 am
Reply with quote
Report this post
I'm glad you could solve it out :).
Is there anything else I can help you with regarding this topic?
User avatar
Moderator

GK User
Fri Jun 26, 2015 8:33 pm
Reply with quote
Report this post
I am good on this one, thank you so much :)
User avatar
Junior Boarder

GK User
Sun Jun 28, 2015 7:49 pm
Reply with quote
Report this post
Feel free to post new forum threads if you have any other questions.
User avatar
Moderator

GK User
Wed Jul 08, 2015 10:46 am
Reply with quote
Report this post
Hello Cyberek,
I tried making another class like you said and it didn't worked. I think the code you posted is only for prefixed classes. I would like more icons there. I think there is more to that class. Can you help?

.gkThumbs {
background-image: url('../images/style2/thumbs.png');
}
.gkThumbs:hover {
background-color: #000000;
}
User avatar
Fresh Boarder

GK User
Sat Jul 11, 2015 6:41 am
Reply with quote
Report this post
Could you please create a screenshot of this element (where it is placed) and post an url to your site?
User avatar
Moderator

GK User
Sun Jul 12, 2015 9:55 am
Reply with quote
Report this post
Of course Cyberek,
the url is http://fotohara.gr/simply/ and you can find attached a thumbnail
User avatar
Fresh Boarder

GK User
Mon Jul 13, 2015 6:52 am
Reply with quote
Report this post
Override.css code should look this way:
Code: Select all
.gkThumbs {
   background-image: url('../images/style2/thumbs.png');
}
.gkThumbs:hover {
   background-color: #000000;
   background-image: url('../images/style2/thumbs.png');
   background-position: center bottom;
}
User avatar
Moderator


cron