conflict with Sidney-theme: in-page link does a full reload
-
I have a WordPress installation containing the Sidney theme and your wp-photo-album-plus-plugin. The Sidney theme contains a “Hero”-header which breaks down to a link within the same HTML-document. Problem is now that the WPPA-plugins comes into play and executes a a full page reload!
My link looks like:<a href="#primary" class="roll-button button-slider">Klicken zum Starten</a>
Some lines below there is
<div id="primary" class="content-area sidebar-right col-md-9 container-normal">
If you click this link what happens then is, that following code within wppa-all.js is executed:
window.onpopstate = function(e) {
if (wppaCanPushState && e.state && e.state.type) {
if ("slide" == e.state.type)
return wppaNoStackPush = !0,
void _wppaGoto(e.state.occur, e.state.slide);
if ("ajax" == e.state.type)
return void document.location.reload()
}
if (-1 != document.location.href.indexOf("wp-admin/admin.php"))
return !0;
document.location.reload()
}The registered listener function gets called and document.location.reload() gets executed! Instead of just jumping to the div section a full page reload is executed. Not really what I wanted…
When I comment out the document.location.reload() – line the scrolling works properly.
- You must be logged in to reply to this topic.