Hello Karl,
Is there is a way to add a button "up" for a gallery, in a sidebar layout like in topbar layout ?
Also did you considered a "load more" or pagination for long gallery ?
Thank's
X3 Photo Gallery Support Forums
Good observation. I will add this to next release ... Until then, it would have to be custom javascript + CSS.Kat wrote:Is there is a way to add a button "up" for a gallery, in a sidebar layout like in topbar layout ?
Yes, but I'm not convinced. X3 already loads images only once they are scrolled into view, and I don't really see how "load more" will offer any benefits. Sounds like "I want to scroll to the footer of page without having to load all images", which in itself is not a logical requirement. Pagination is a bit of an outdated concept, and would require page URL's to reflect upon this, for example /gallery/holidays/{page-number}/ (bad for SEO, URL referencing and caching concepts).Kat wrote:Also did you considered a "load more" or pagination for long gallery ?
Where did you get this code? Did you somehow add the html also? If it already displays a fixed button to your liking, then we can work with that. It would be a simple fix, as I don't have resources to write a dedicated custom "scroll to top" plugin per forum request, which would need 1. Custom HTML injected, 2. Custom CSS to fix the button to a specific location and 3. Javascript to target the button and cause a scroll-to-top on click, and 4. Ultimately it should exhibit smart behavior to not scroll to top if it's already almost at top.Kat wrote:In the meantime can you please help me to implement custom javascript and css and in which module to add the css tag ?
Not sure it's right thing to do and what next ?Code.footerup { position: absolute; width: 100%; top: 0; } .footerup button { color: inherit; border-radius: 0 0 60px 60px; height: 30px; width: 60px; font-size: 1.6em; padding-bottom: 5px; background-color: #151b1e; }