some bugs with Photo Swipe gallery

September 2015 Joomla Template
GK User
Mon Nov 02, 2015 9:33 am
Hello!
I have some problems with icons in PhotoSwipe component in this template(see att. file)

Next problem with images order in gallery. It' correct on desktop and tablet and wrong on mobile. It's not good :( (see att. files)
Here is the link:
http://karkas.info/proecty-i-chertezhy/ ... ozhar.html
Help me pls, gallery is very important for me!
User avatar
Senior Boarder

GK User
Mon Nov 02, 2015 7:12 pm
Order on mobile is correct if you consider how rwd works. You have images in 3 columns, and ordering goes down in each column (first are all images in left column, then center, lastly right). On mobile all columns are set to display one under another, so again all images from first, then second, then third column.
If it goes to arrows, it looks you have a lot of javascript and access errors in javascript console. One of them tells that your site is configured to load files from http://www.karkas.info/ not http://karkas.info/ so first thing to do would be to set some kind of redirection so site loads always from same address (which is same as one set in configuration).
User avatar
Moderator

GK User
Tue Nov 03, 2015 9:41 am
Hi!
I understand the order of the columns, but I was talking about order of images specifically in the PS gallery.
Thanks for redirect! I set it to karkas.info
What about the icons in the gallery? They're so strange... :)
User avatar
Senior Boarder

GK User
Sat Nov 07, 2015 3:06 pm
Ok, they display wrongly in the "fullscreen" because of data-order parameter that is attached to each anchor. It sets the order of display when you watch PhotoSwipe in fullscreen.
User avatar
Moderator

GK User
Sat Nov 07, 2015 3:22 pm
And missing icons seems to be caused by outdated template. Please update it first.
User avatar
Moderator

GK User
Sun Nov 15, 2015 9:43 pm
Cyberek wrote:And missing icons seems to be caused by outdated template. Please update it first.

I've updated the template to 1.0.1 version. There are still no icons... :(
User avatar
Senior Boarder

GK User
Tue Nov 17, 2015 2:27 pm
Did you start with quickstart or standalone Joomla template?
User avatar
Moderator

GK User
Wed Nov 18, 2015 9:11 am
Cyberek wrote:Did you start with quickstart or standalone Joomla template?

Standalone Joomla template
User avatar
Senior Boarder

GK User
Fri Nov 20, 2015 5:24 pm
Ok, seems like a bug in our template. I'll ask our devteam to fix that and will write back as soon as I'll get an answer.
User avatar
Moderator

GK User
Sun Nov 22, 2015 9:47 pm
Cyberek wrote:Ok, seems like a bug in our template. I'll ask our devteam to fix that and will write back as soon as I'll get an answer.

Thank you Cyberek.
Well I didn't understand about order in mobile view(fullscreen mode)... Why didn't work "data-order" parametr? It works in desktop, tablet but don't work correctly in mobile view(fullscreen mode) What's wrong with it? Or is that my fault? May be I do something wrong?
User avatar
Senior Boarder

GK User
Tue Nov 24, 2015 6:04 pm
If it goes to data order... it looks like some standard PhotoSwipe plugin behave :/.
User avatar
Moderator

GK User
Fri Dec 11, 2015 10:17 am
Hi Ceberyk!
Is there any solution from your devteam about icon?
User avatar
Senior Boarder

GK User
Wed Dec 16, 2015 5:35 pm
No, sorry, I have asked again.
User avatar
Moderator

GK User
Mon Dec 21, 2015 9:00 am
I don't know it you are familiar with less files, if so please edit this file:
gk_technews/less/photoswipe-skin.less (and regenerate css files at the end)
if not, then please edit this file:
gk_technews/css/template.css

Now please use this code instead of old one (from .less file):
Code: Select all
.pswp__button--close:before {
   color: @dark;
   content: "close";
   font-family: 'Material Icons';
   font-weight: normal;
   font-style: normal;
   font-size: 2rem;
   text-transform: none;
   letter-spacing: normal;
   word-wrap: normal;
   white-space: nowrap;
   direction: ltr;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   -moz-osx-font-smoothing: grayscale;
   font-feature-settings: 'liga';
 }

.pswp__button--share:before {
   color: @dark;
   content: "share";
   font-family: 'Material Icons';
   font-weight: normal;
   font-style: normal;
   font-size: 2rem;
   text-transform: none;
   letter-spacing: normal;
   word-wrap: normal;
   white-space: nowrap;
   direction: ltr;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   -moz-osx-font-smoothing: grayscale;
   font-feature-settings: 'liga';
}
.pswp__button--fs:before {
   color: @dark;
   content: "fullscreen";
   font-family: 'Material Icons';
   font-weight: normal;
   font-style: normal;
   font-size: 2rem;
   text-transform: none;
   letter-spacing: normal;
   word-wrap: normal;
   white-space: nowrap;
   direction: ltr;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   -moz-osx-font-smoothing: grayscale;
   font-feature-settings: 'liga';
}
.pswp__button--zoom:before {
   color: @dark;
   content: "zoom_in";
   font-family: 'Material Icons';
   font-weight: normal;
   font-style: normal;
   font-size: 1.8rem;
   text-transform: none;
   letter-spacing: normal;
   word-wrap: normal;
   white-space: nowrap;
   direction: ltr;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   -moz-osx-font-smoothing: grayscale;
   font-feature-settings: 'liga';
}
.pswp__button--arrow--left:before {
   color: @dark;
   content: "keyboard_arrow_left";
   left: 30px;
   font-family: 'Material Icons';
   font-weight: normal;
   font-style: normal;
   font-size: 4rem;
   text-transform: none;
   letter-spacing: normal;
   word-wrap: normal;
   white-space: nowrap;
   direction: ltr;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   -moz-osx-font-smoothing: grayscale;
   font-feature-settings: 'liga';
}
.pswp__button--arrow--right:before {
   color: @dark;
   content: "keyboard_arrow_right";
   right: 30px;
   font-family: 'Material Icons';
   font-weight: normal;
   font-style: normal;
   font-size: 4rem;
   text-transform: none;
   letter-spacing: normal;
   word-wrap: normal;
   white-space: nowrap;
   direction: ltr;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   -moz-osx-font-smoothing: grayscale;
   font-feature-settings: 'liga';
}

Now if you want to only edit css files, replace "@dark" with "#424242".
User avatar
Moderator

GK User
Tue Dec 22, 2015 1:37 pm
Thanks, Cyberek! It works...
User avatar
Senior Boarder

GK User
Wed Dec 23, 2015 8:57 pm
Ok. If you have any additional questions regarding this topic, please let me know.
User avatar
Moderator


cron