fbpx

Stay Home & Grab 20% Discount COVID19Grab Now

Welcome, Guest
Username: Password: Remember me

TOPIC: one page site with anchors bugs

one page site with anchors bugs 1 month 2 weeks ago #21364

  • jeronimol
  • jeronimol's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Hi, im using astroid 2.3.0.

Im trying to do a one page site, i tried to activate smooth scroll but dont work. gives a error "index.php:62 Uncaught ReferenceError: SmoothScroll is not defined
at index.php:62"


Can you help me?

Many thanks
Jeronimo Lourenço
Last Edit: 1 month 2 weeks ago by jeronimol.
The administrator has disabled public write access.

one page site with anchors bugs 1 month 2 weeks ago #21372

  • nishtha
  • nishtha's Avatar
  • Offline
  • Moderator
  • Posts: 843
  • Thank you received: 90
  • Karma: 12
Hey Jeronimo,

Did you go through the documentation on how to create one page using Astroid: docs.joomdev.com/article/creating-one-page-website-in-astroid/
If still you see the error then let us know.

Thanks,
Nishtha
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.

one page site with anchors bugs 1 month 2 weeks ago #21373

  • jeronimol
  • jeronimol's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Hi, thanks for the answer. its working like one page site. the anchors are working. the problem is that the smooth scroll is not working

gives me this error Uncaught ReferenceError: SmoothScroll is not defined
at (index):62


but the smooth scroll in astroid is activated.

thanks
Last Edit: 1 month 2 weeks ago by jeronimol.
The administrator has disabled public write access.

one page site with anchors bugs 1 month 2 weeks ago #21374

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3704
  • Thank you received: 543
  • Karma: 96
Can you see references to smoothscroll.js in the source code?

It could be that is' conflicting with another Js Library. Do you have other plugins installed that may be adding additional JS to the page?

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

one page site with anchors bugs 1 month 2 weeks ago #21395

  • jeronimol
  • jeronimol's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
its says in console
index.php:58 Uncaught ReferenceError: SmoothScroll is not defined


and the code that is red is

var scroll = new SmoothScroll('a[href*="#"]', {
speed: 661,
header: ".astroid-header"
});

i tried to disablle some plugins but always have the error
Last Edit: 1 month 2 weeks ago by jeronimol.
The administrator has disabled public write access.

one page site with anchors bugs 1 month 2 weeks ago #21404

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3704
  • Thank you received: 543
  • Karma: 96
It's suppose to load the following file as well.
smooth-scroll.polyfills.min.js

Can you see the file name in your code.
Do you have JCH or any other optimization plugin that might be modifying the code and can you try disabling the same?

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.746 seconds