Remember me

where i can set padding-top for Scroll to top??

7 years 4 months ago #1

  • Qbik's Avatar
  • Qbik
  • Posts: 728
Where I can set direct place to scroll to top?

You can see it here portfolio.dem0.pl/portfolio/przyroda maybe adding padding-top will help

7 years 4 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hello,

It's a Javascript, your fixed header is overlapping the top of the Gallery. Enable scroll top top and provide us FTP access, and we'll make a small customization for you
support.balbooa.com/contact-us

Regards,

7 years 4 months ago #3

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hello,

Here is solution, for pagination type - Load More
Go to: /components/com_bagallery/assets/js/ba-gallery.js
Line 992

Replace from:
scrollTop: position
To:
scrollTop: position - 150

Regards,

7 years 3 months ago #4

  • Qbik's Avatar
  • Qbik
  • Posts: 728
hmm on line 992 there is no position

I change this part
else {
                        button.removeClass('load-more').addClass('scroll-to-top')
                        button.text(paginationConst[3]);
                        var position = $container.offset().top;
                        button.on('click', function(){
                            ba_jQuery('html, body').animate({
                                scrollTop: position - 250
                            }, 'slow');
                        });
                    }

so on line 972 and position -250 fix it ;)

thx
Powered by Kunena Forum