Home › Forums › Air WordPress Theme › Portfolio list scroll position error
- This topic has 10 replies, 3 voices, and was last updated 6 years, 3 months ago by
lieselchen.
-
AuthorPosts
-
August 13, 2019 at 6:26 am #19170
My website has a list of portfolios on the home and works pages.
There is a malfunction in this portfolio list and I would like to correct it.Malfunction Details :
Click on a specific portfolio item -> Go to the detail page of the item you clicked -> Press the back key to return to the portfolio list page -> Portfolio list scrolling does not retain last position.(set to any position) The same error occurs on mobile.Please let me know what part of the code needs to be fixed.
Thank you for the quick and accurate response every time.August 13, 2019 at 7:01 am #19171My website url :
August 13, 2019 at 7:33 am #19172Hi,
Please try to remove the codes line1994-1998 in /js/custom.theme.jswindow.onpageshow = function(event) { if (event.persisted) { window.location.reload() } };Please clean the mobile browser cache to test.
Regards!
SeaTheme – SeaTheme.net – Twitter – FacebookAugust 13, 2019 at 1:23 pm #19174Thank you for your prompt response.
But unfortunately,
I deleted that function but still get the same error. t.t/*
window.onpageshow = function(event) {
if (event.persisted) {
window.location.reload()
}
};
*/August 13, 2019 at 2:52 pm #19176Hi,
Please make sure to clean the mobile browser cache to test.
Regards
August 14, 2019 at 9:14 am #19189Cleaned up the mobile browser cache and tested it on mobile and found it fixed correctly.
However, the PC browser still experiences the last position of the scroll not being fixed.
August 15, 2019 at 1:28 am #19196Hi, did you clean the browser cache? I tested your website on my browser just now, it worked.
February 26, 2020 at 5:21 am #20556Hi
after installing the theme update I got the same problem. I deleted the said lines in the former version but now I don’t know where to remove these lines as the theme-editor is missing in the design menu.
Can you help me please.Furthermore the website fonts (google fonts) are not working with google chrome, Firefox and safari are ok.
Thanks a lot for your help
February 26, 2020 at 8:12 pm #20558Hi again, I removed the said lines now but it is not working.
When I click back from a pic in the portfolio or in news to the main page it is reloading and scrolling back to the top every time.
What can I do?Thanks a lot
PetraFebruary 27, 2020 at 3:52 am #20559Hi,
I checked your website, there still the code in the custom.theme.js https://www.betonwerkstatt.ch/wp-content/themes/theone/js/custom.theme.js (scroll to the bottom)
ps: plz check if there is cache setting on your wp-admin, please purge itI didn’t see the different of the font: https://www.dropbox.com/s/xdvt2cuv52oi3z6/qq20200227-115057.jpg?dl=0
Regards
February 27, 2020 at 5:15 am #20561Hi
I put the code back yesterday as it didn’t work although I deleted the cache several times.
For some reason it is working now. ThanksBut there is still an issue with the font in Chrome, I see something like Times new Roman and the page reload is also still there in chrome. But if it is working on your end, I think I can fix this somehow.
Thanks, Petra
-
AuthorPosts
- You must be logged in to reply to this topic.
