*

oscman

  • ****
  • 227 posts
pagination not going back to op
« on: March 20, 2017, 02:42:30 AM »
on search when changing pages the page doesn't go back to top what could be the issue for this? i haven't changed any js or anything related

*

Ivanko

  • *****
  • 388 posts
Re: pagination not going back to op
« Reply #1 on: March 20, 2017, 02:47:24 AM »
check here:

http://forums.mb-themes.com/veronika-osclass-responsive-theme/page-next/


by frosticek :

Into file:
oc-content/themes/veronika/js/global.js

on line approx 289 (before return false; ) place:

Code: [Select]
$('html, body').animate({ scrollTop: $('#category-navigation').offset().top }, 200);
« Last Edit: March 20, 2017, 02:56:43 AM by Ivanko »

*

oscman

  • ****
  • 227 posts
Re: pagination not going back to op
« Reply #2 on: March 20, 2017, 03:06:10 AM »
Thanks!

*

oscman

  • ****
  • 227 posts
Re: pagination not going back to op
« Reply #3 on: March 20, 2017, 03:17:35 AM »
i did it and didn't work cleared cache and everything the code looks like this:

Code: [Select]
            // Update URL
            window.history.pushState(null, null, ajaxSearchUrl);
$('html, body').animate({ scrollTop: $('#category-navigation').offset().top }, 200);
          }
        });

        return false;
      }
    }
  });

*

Ivanko

  • *****
  • 388 posts
Re: pagination not going back to op
« Reply #4 on: March 20, 2017, 03:26:06 AM »
check carefully  :) :


Code: [Select]
// Update URL
            window.history.pushState(null, null, ajaxSearchUrl);
          }
        });
         
// mod frosticek $('html, body').animate({ scrollTop: $('#category-navigation').offset().top }, 200); move on top when scroling next page
$('html, body').animate({ scrollTop: $('#category-navigation').offset().top }, 200);
        return false;
      }
    }
  });
« Last Edit: March 20, 2017, 03:27:49 AM by Ivanko »

*

oscman

  • ****
  • 227 posts
Re: pagination not going back to op
« Reply #5 on: March 20, 2017, 03:31:19 AM »
i tried like u just say at frist time, it didn't work then i moved it up still didn't work probably i am missing something big here

Code: [Select]
            // Update URL
            window.history.pushState(null, null, ajaxSearchUrl);

          }
        });
$('html, body').animate({ scrollTop: $('#category-navigation').offset().top }, 200);
        return false;
      }
    }
  });

*

Ivanko

  • *****
  • 388 posts
Re: pagination not going back to op
« Reply #6 on: March 20, 2017, 03:35:39 AM »
just get Firefox with following settings for testing purpose, & you will always get a chocolate. :)
seems cash, history...problems...

*

oscman

  • ****
  • 227 posts
Re: pagination not going back to op
« Reply #7 on: March 20, 2017, 03:47:41 AM »
its the same with incognito mode, i have cleared cache 10 times and run it in incognito

*

Ivanko

  • *****
  • 388 posts
Re: pagination not going back to op
« Reply #8 on: March 20, 2017, 03:53:34 AM »
hmmm...did you try to open in other browser?

are you testing online or on localhost ?

*

oscman

  • ****
  • 227 posts
Re: pagination not going back to op
« Reply #9 on: March 20, 2017, 03:55:40 AM »
its online i tried with chrome and firefox both cleared every cache and on incognito, can you test the pagination?

*

Ivanko

  • *****
  • 388 posts
Re: pagination not going back to op
« Reply #10 on: March 20, 2017, 04:04:57 AM »
yeah, tested your site, not working, it is difficult to say...but if there are not many modifications were performed you can try to reinstall theme or test it with new installed theme on localhost ...
I am going to sleep in Montevideo now 00.07
 :) :o :o :o
« Last Edit: March 20, 2017, 04:18:53 AM by Ivanko »

*

oscman

  • ****
  • 227 posts
Re: pagination not going back to op
« Reply #11 on: March 20, 2017, 04:18:11 AM »
ok good night hope to find solution tomorow

*

MB Themes

Re: pagination not going back to op
« Reply #12 on: March 20, 2017, 07:48:14 AM »
@oscman
On my hosting is clearing cache so difficult. It is not juts browser that cache, but also server. It can take 20 minutes to refresh file, therefore in head.php I am adding ?v=23 to style.css or global.js if I modify it (23 is random number, not same as previous).
In this situation you tell hosting and browser there is new file.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: pagination not going back to op
« Reply #13 on: March 20, 2017, 12:41:26 PM »
i am using cloudflare and clearing chache there too its adding automaticaly versions, today its still doesn't work and the problem with small images on list view under the image that doesn't change is again back althought i have it fixed