Blog - William Bargent

I'm a Network Engineer with AWS and Azure Ops experience. A hobbyist Web Design / Developer blogger and Linux Server Engineer; taking on private development work and contributing to open-source projects.



Prevent # href Page Jumping

Many JQuery toggles are controlled by ‘a’ links with ‘#’ href values however when clicked they can make the page jump. This simple code will lock the page position: //Prevent page jumping to top on # click $(“a.submenu-button”).click(function(e) { e.preventDefault();… Continue Reading →

Require and Provide Concrete5 Assets

When developing a new C5 theme the documentation on scripts and using core scripts is a bit vague for 5.7 installations. The following code allows you to tell C5 that your theme doesn’t include jQuery so load it: $this->requireAsset(‘javascript’, ‘jquery’);… Continue Reading →

© 2019 Blog – William Bargent — Powered by WordPress

Theme by Anders NorenUp ↑