tranduyhung / grav-theme-big-picture

Big Picture theme is a port of Big Picture by HTML5 UP for Grav CMS
MIT License
15 stars 12 forks source link

'Uncaught ReferenceError: breakpoints is not defined' after updating #34

Closed lguariento closed 2 years ago

lguariento commented 2 years ago

Hello, I just updated from version 1.x to 2.x and the website doesn't look right (the 'jump to' sections is not smooth, and the fonts and images look wonky).

I get this error on the console:

Uncaught ReferenceError: breakpoints is not defined
    <anonymous> .../user/themes/big-picture/assets/js/main.js:15
    <anonymous> .../user/themes/big-picture/assets/js/main.js:219
[main.js:15:3](.../user/themes/big-picture/assets/js/main.js)
tranduyhung commented 2 years ago

breakpoints is defined in assets/js/breakpoints.min.js and is loaded in templates/partials/head.html.twig. Did you try to clear your browser and Grav's cache? Can you check that breakpoints.min.js is loaded on your site?

lguariento commented 2 years ago

Thank you very much for this, since I use a custom theme, extending this one, I didn't have the linecalling the .js in my custom head. Problem solved.