Did you know that it is possible, and extremely easy, to assign a random background image to your Hide My Site login page? By this I mean that you can set the background image to be different every time the login page is viewed? This short post will show you how to do this. Note that you have to be using Hide My Site premium in order to set custom background images for your login pages.
How it’s done
Unsplash.it provides access to over a thousand placeholder images that can be loaded randomly. The images are all from Unsplash.com, which as I have mentioned in previous posts, is an excellent source of quality, high-end photos. All you have to do is set the Custom Background Image field in your WP admin > Settings > Hide My Site > to https://unsplash.it/800/600/?random. I also set the “Background Image Position” field to “Crop to Fit”. The reason is that this will set the image to use the full width and height of your login page, and also crop the image according to the login page dimensions.
That’s all there is to. Now every time your login page loads, a different and beautiful background image will be shown each time. Note that in my example I set the background image dimensions to 800 x 600, but you are free to do whatever you want for the width and height.
Thanks for taking the time to follow along with this quick post. I hope you find it helpful. Please let me know if you have any questions or other feedback in the comments.