How to remove ESlLnt on Sage WordPress Theme

You need to disable eslint in the /theme-name/resources/assets/build/webpack.base.conf.js. Here’s what you file probably looks like. *This file is from a Sage 9 alpha version, so your’s might be different. Welcome to the open-source life lol. ‘use strict’; // eslint-disable-line const … Continued

Conditionally load Javascript based on media query

  @media all and (max-width: 900px) would be…

 

Smooth Page Scroll to Div on Same Page

Using hash tags to reference different parts of a page? Use this snippet to make the scroll to page smooth and to remove the hash tag that automatically gets appended to the url in the browser window.