Replies: 2 comments 3 replies
-
There's a quick and dirty solution:
4.Refresh the page |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just as an additional trick, to make sure the background properly fills/fits when the random image is too big or too small, add the css $alt_bg = '';
if($bg_image = Setting::fetch('background_image')) {
// $alt_bg = ' style="background-image: url(/storage/'.$bg_image.')"';
$alt_bg = ' style="background-image: url(https://source.unsplash.com/daily); background-size: cover;"';
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe would be cool to have a option to choose a picture from Unsplash or set a random Image
https://source.unsplash.com/
Full API:
https://unsplash.com/developers
Beta Was this translation helpful? Give feedback.
All reactions