Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Blank page when I add script to scroll onepage

Featured Lock Resolved Issue
Hi,

I'm using Page Builder 3 and Helix 3 to make a one page scroll webpage.

I've added this code to scroll to make the buttons scroll to the content.

<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top-150
}, 1000);
return false;
}
}
});
});
</script>

When I try to edit the site in the front, I get a blank page.
When I remove
"<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>"
I can edit the site in the front but the site doesn't scroll anymore.

Is there a way to fix this?

thnx

1 Answers

Toufiq - Staff

More than a month ago #Permalink
Hi,

Thanks for your query. First of sorry to say that, we don't provide the customization support. Besides, scrollTo js has the problem in google chrome last update.

-Thanks


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 227
Sifat

Sifat

Total Accepted Answers: 115
Toufiq

Toufiq

Total Accepted Answers: 93
Pavel

Pavel

Total Accepted Answers: 5
Rifat Wahid Alif

Rifat Wahid Alif

Total Accepted Answers: 4

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us