Module "About us" link click to open in new window

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 Sep 02, 2013 6:42 am
Reply with quote
Report this post
Hello

In the "About us" module, when the social icon to facebook or twitter is clicked, I want the link to appear in the new page. What should I do?

Thank you.
User avatar
Fresh Boarder

GK User
Mon Sep 02, 2013 7:39 am
Reply with quote
Report this post
Please edit file:
templates/gk_creativity/js/gk.scripts.js
find 3 lines:
Code: Select all
htmloutput += '<a href="'+figure.getProperty('data-fb')+'" data-type="fb">Facebook</a>';
htmloutput += '<a href="'+figure.getProperty('data-twitter')+'" data-type="twitter">Twitter</a>';
htmloutput += '<a href="'+figure.getProperty('data-gplus')+'" data-type="gplus">Google+</a>';

(they are separated by other code), and change them so they look this way:
Code: Select all
htmloutput += '<a target="_blank" href="'+figure.getProperty('data-fb')+'" data-type="fb">Facebook</a>';
htmloutput += '<a target="_blank" href="'+figure.getProperty('data-twitter')+'" data-type="twitter">Twitter</a>';
htmloutput += '<a target="_blank" href="'+figure.getProperty('data-gplus')+'" data-type="gplus">Google+</a>';
User avatar
Moderator

GK User
Mon Sep 02, 2013 8:01 am
Reply with quote
Report this post
Perfect!

Thank you :D
User avatar
Fresh Boarder

GK User
Mon Sep 02, 2013 10:03 am
Reply with quote
Report this post
No problem :)
User avatar
Moderator


cron