GK News Gallery

Place where you can get help, share your ideas and discuss about Bike Store shopping Wordpress theme with WooCommerce support and plugins built for product placement.
GK User
Sun Jan 05, 2014 7:45 pm
Hello, I need your help. I have a problem with "GK News Gallery" look screenshot. I hope you can halp me 7

Image

Thank you
User avatar
Junior Boarder

GK User
Mon Jan 06, 2014 10:27 am
I'm not quite sure whats the problem - you can change number of elements that is being shown by the widget if that is the case.
Ps - Member Sites is a section where users show their finished sites. You should ask this in proper template forum.
Moving the question to bikestore forum.
User avatar
Moderator

GK User
Mon Jan 06, 2014 10:45 am
how to make products in a single line?
User avatar
Junior Boarder

GK User
Mon Jan 06, 2014 10:54 am
Image
User avatar
Junior Boarder

GK User
Mon Jan 06, 2014 11:14 am
Could You please post an url to your site?
User avatar
Moderator

GK User
Mon Jan 06, 2014 11:22 am
please loock you Private Message
User avatar
Junior Boarder

GK User
Tue Jan 07, 2014 9:40 am
Ok, it seems jQuery wrongly calculates width of the elements.
Please edit file:
wp-content/themes/BikeStore/js/widgets/news_gallery.js
and modify this line:
Code: Select all
module.find('.gk-ns-arts-scroll').css('width', (jQuery(arts[arts.length - 1]).outerWidth() * arts.length) + 2);

to:
Code: Select all
module.find('.gk-ns-arts-scroll').css('width', (jQuery(arts[arts.length - 1]).outerWidth() * arts.length) + 10);
User avatar
Moderator

GK User
Tue Jan 07, 2014 12:19 pm
great! thank very much!
User avatar
Junior Boarder

GK User
Tue Jan 07, 2014 12:32 pm
No problem :)
I'm glad I could help.
User avatar
Moderator

GK User
Tue Jan 07, 2014 12:36 pm
Ps. Could you try this code:
Code: Select all
module.find('.gk-ns-arts-scroll').css('width', (jQuery(arts[arts.length - 1]).width() * arts.length) + 2);

and write back if it also works fine?
User avatar
Moderator

GK User
Tue Jan 07, 2014 2:17 pm
So, this code isn´t working
Code: Select all
module.find('.gk-ns-arts-scroll').css('width', (jQuery(arts[arts.length - 1]).width() * arts.length) + 2);;

this code isn´t working with firefox, but with google chrom it working
Code: Select all
module.find('.gk-ns-arts-scroll').css('width', (jQuery(arts[arts.length - 1]).outerWidth() * arts.length) + 10);
User avatar
Junior Boarder

GK User
Tue Jan 07, 2014 3:08 pm
Please send me a PM with:
1. URL to your website
2. ftp data (host, user, password)
3. link to this thread
User avatar
Moderator

GK User
Fri Jan 10, 2014 10:25 am
The problem is with this element:
http://d.pr/i/62Qi

Its name is too long and it causes weirdness in some js calculations.
Is it possible for you to change the name and make it a little bit shorter?
User avatar
Moderator

GK User
Fri Jan 10, 2014 5:15 pm
yes I can, thanks for the solution!


Cyberek wrote:The problem is with this element:
http://d.pr/i/62Qi

Its name is too long and it causes weirdness in some js calculations.
Is it possible for you to change the name and make it a little bit shorter?
User avatar
Junior Boarder

GK User
Sat Jan 11, 2014 12:28 pm
No problem. Sorry it took so long.
User avatar
Moderator


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