"Key feature" module icons

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
Thu Jul 31, 2014 4:22 pm
Reply with quote
Report this post
Hello,

I installed the template using quickstart, but I did not find any "key feature" module icon. I mean the ones "INNOVATIVE DESIGN" "AWARD-WINNING AGENCY" etc. (rocket, badge, mouse etc.). I can only see the module divided in 4 with text and mousehover orange effect.

How can I use those icons (eventually other custom icons)? I know they are in /templates/gk_startup/images/style1/gk_badge.png, but I did not understand how can I put them in the module and make them appear.

I tried to compare with the help of element inspect, the code of my template with the one of the demo page and it seems to me that something is missing... I could see "<span>rocket</span>" in demo, that seems to contain the css that sets the image act like it should, but it's missing in my template (or I think so...)

I aldo tried to put in override the following (taken from demo page)

Code: Select all
.gkBadge > span {
background-image: url('/templates/gk_startup/images/style1/gk_badge.png');
}
.gkBadge > span {
background: transparent url('/templates/gk_startup/images/style1/gk_badge.png') no-repeat 0 0;
}


But it seems not working...

Thanks for your help
User avatar
Expert Boarder

teitbite
Fri Aug 01, 2014 12:18 am
Reply with quote
Report this post
Hi

Please check if typography is enabled in template settings and tell me the url to Your site.
User avatar
Moderator

GK User
Fri Aug 01, 2014 8:44 am
Reply with quote
Report this post
Hello,

typography is enabled, as well as "Use typography iconset" is

My site is actually offline; I've sent you a PM with link and password.

Thanks
User avatar
Expert Boarder

teitbite
Fri Aug 01, 2014 3:14 pm
Reply with quote
Report this post
Hi

Yes "<span>Rocket</span>" is missing in Your site and it's crucial to show icons. Which means You will have to edit this module's code and add it.
User avatar
Moderator

GK User
Fri Aug 01, 2014 5:11 pm
Reply with quote
Report this post
Ehm... ehm... uhm... can you be more explicative please? :-D Where do I have to put it exactly? It's a custom HTML module which contains:

Code: Select all
<div class="gkFeatures gkPerspective"><a class="gkRocket" href="#" data-animation="flip" data-delay="0">RocketInnovative Design</a> <a class="gkBadge" href="#" data-animation="flip" data-delay="150">BadgeAward-winning Agency</a> <a class="gkMouse" href="#" data-animation="flip" data-delay="300">MouseYour ideas, imagination</a> <a class="gkPiggy" href="#" data-animation="flip" data-delay="450">PiggySave Your Time &amp; Money</a></div>
<p><a href="#">View Full Features</a></p>


I could only see the difference simply comparing the code, but I'm not so hard-coded :-P

Thanks
User avatar
Expert Boarder

teitbite
Sat Aug 02, 2014 4:48 pm
Reply with quote
Report this post
Hi

Please just use this code instead:

Code: Select all
<div class="gkFeatures gkPerspective">
<a class="gkRocket" href="#" data-animation="flip" data-delay="0"><span></span>RocketInnovative Design</a>
<a class="gkBadge" href="#" data-animation="flip" data-delay="150"><span></span>BadgeAward-winning Agency</a>
<a class="gkMouse" href="#" data-animation="flip" data-delay="300"><span></span>MouseYour ideas, imagination</a>
<a class="gkPiggy" href="#" data-animation="flip" data-delay="450"><span></span>PiggySave Your Time &amp; Money</a>
</div>
<p><a href="#">View Full Features</a></p>
User avatar
Moderator

GK User
Mon Aug 04, 2014 2:34 pm
Reply with quote
Report this post
Hello,

it does not work...

In gk.stuff.css I could see:

Code: Select all
}
.gkRocket > span {
   background: transparent url('../images/style1/gk_rocket.png') no-repeat 0 0
}


I also put the folder style1 in /images/ of the root (I thougt the path could lead there...)

I also emptied the browser and site cache, I tried with chrome, FF and IE, but I could not see any icon...

What can I do?

Thanks for your help...
User avatar
Expert Boarder

teitbite
Tue Aug 05, 2014 11:17 am
Reply with quote
Report this post
Hi

It's not about images. They are where they should be. Problem was with lack of <span></span>. I've done exactly as I told You a post before.

- disabled editor
- edited module settings
- replaced the code with one I have mentioned above:

Code: Select all
<div class="gkFeatures gkPerspective">
<a class="gkRocket" href="http://www.google.com" data-animation="flip" data-delay="0"><span></span>Rocket Innovative Design</a>
<a class="gkBadge" href="#" data-animation="flip" data-delay="150"><span></span>BadgeAward-winning Agency</a>
<a class="gkMouse" href="#" data-animation="flip" data-delay="300"><span></span>MouseYour ideas, imagination</a>
<a class="gkPiggy" href="#" data-animation="flip" data-delay="450"><span></span>PiggySave Your Time &amp; Money</a>
</div>
<p><a href="#">View Full Features</a></p>
User avatar
Moderator

GK User
Fri Aug 08, 2014 9:14 am
Reply with quote
Report this post
Hello,

sorry for the delay in my answer: I've been in holidays for some days...

THANK YOU SO MUCH!!!! You helped me very very much.

You Gavick guys are great!

Thank you!!! :-)

PS I did not understand I had to disable the editor...
User avatar
Expert Boarder

teitbite
Fri Aug 08, 2014 9:58 am
Reply with quote
Report this post
Hi

No problem. Glad I could help :)
User avatar
Moderator

GK User
Fri Aug 08, 2014 6:07 pm
Reply with quote
Report this post
Just another issue... I noticed that if I want to get class div I have to disable the editor... infact if I use the HMTL view of the editor, the class disappear after saving.

A way to get both editor and classes is to use (i.e.) JCE editor and set in its configuration in "editor class" the classes you want to keep in wysiwyg.

In this way even if you modify the text with the editor, the classes you've set in the editor config will not disappear
User avatar
Expert Boarder

teitbite
Sun Aug 10, 2014 3:25 pm
Reply with quote
Report this post
Hi

Yes, that's true some of the html are stripped from code. I always advice to disable editor while making changes to them in user configuration, but Your idea is probably more useful since You do not need to turn it on and off.
User avatar
Moderator


cron