The WordPress Scroll Back to Top plugin is extremely flexible and can accommodate nearly any design to match an existing website. By adjusting a few simple configuration options you can easily adapt the plugin to your site in minutes. To give you some inspiration for different scroll to top button ideas and to illustrate how simple it is to change the design I have a few screenshots of the button in action along with the settings needed to execute the design. more…
Javascript Articles
Adding a Scroll to Top Button to a Website
Adding a scroll to top button to your website can be a great way to allow your users to navigate, especially if you have long-scrolling pages. A scroll button should be subtle and it has become expected to see one on the lower right of the page. more…
Scroll to an Element With Anchor Id After Loading the Page Using jQuery
Most all modern browsers contain the functionality to open a page at a certain anchor element on the page when loaded with a hash element in the link. For example, a link to http://www.mysite.com/#super-element would open the page and display the element with the id=”super-element” attribute. more…
Adding an AJAX Login Form to a Symfony Project
Adding an AJAX powered login form to a Symfony 2 project is pretty simple, but there are a few things to cover. The first is that the Symfony firewall handles authentication by sending a form to the route defined in the app/config/security.yml as the check_path for the firewall. So to login using AJAX, a form needs to be posted to that route along with a few fields, _username, _password, _remember_me, and if you’ve enabled CSRF for your form, the _csrf_token, field. more…
Adding an AJAX Login Form to a WordPress Theme
Localize Scripts in WordPress to Use PHP Variables in Javascript
Accessing PHP variables in javascript using WordPress can come in very handy, especially in plugins or themes that use separate javascript files and php page templates where accessing a variable is not possible to do directly. A great example of where this would be necessary is when you have a string that needs to be translated using PHP but is to be rendered using javascript, maybe in an alert box or error message more…