Category Archives: Snippets

Disable WordPress automatically creating image sizes
20. Mar 2018 20:47 • Snippets, WordPress • #, #, #, #

Disable WordPress automatically creating image sizes

Have you ever looked inside the uploads folder of WordPress site and saw a lot of almost the same image files? Do not worry, this is not some malware or anything similar, it’s the default behaviour of WordPress called thumbnails or image sizes. For any larger image you upload, WordPress creates multiple resized versions of…Read More

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