Category Archives: Snippets

Redirect all HTTP requests to HTTPS
19. Feb 2018 17:48 • Snippets • #, #, #, #, #, #

Redirect all HTTP requests to HTTPS

If you just acquired your SSL certificate and set it up, chances are that you will need to force the website to use secure HTTPS version by default. This is done very easily, you’ll just need to create .htaccess file (if it doesn’t exist already)  in root folder of your website, and on top of…Read More

Smooth scroll to element using jQuery
18. Feb 2018 18:50 • Snippets • #, #, #, #

Smooth scroll to element using jQuery

If you are currently developing one page website, or just having a page where you navigate to certain elements, chances are that you’ll want that scroll to be a smooth and clean. Immediately you think I will need some scrolling JS plugin/script (like ScrollMagic), but there is a much simpler and easier way: $(‘a[href*=”#”]’).on(‘click’, function…Read More