hugo-universal-theme icon indicating copy to clipboard operation
hugo-universal-theme copied to clipboard

Configurable Background image for Photogrid

Open GeorgeWL opened this issue 8 years ago • 3 comments

Make background image for Photogrid configurable through either Data Elements or a Config param.

GeorgeWL avatar Jul 04 '17 14:07 GeorgeWL

Since the background image photogrid.jpg is defined in the site's CSS files, I think this could be relevant:

https://blog.fullstackdigital.com/how-to-use-hugo-template-variables-in-scss-files-in-2018-b8a834accce

salim-b avatar Sep 17 '18 20:09 salim-b

from #22 @ngehani

This doesn't seem to work for me: "Need to 1: copy the carousel.html to layouts/partial along with the 2: style.default.css to static/css and this overrides the default theme elements. The partials are the important piece to copy. The img/.... should contain the assets you want to use."

What is the proper way to overwrite background image. I need to give it exact name per branding guide. Its weird that it's located in theme/universal-theme, unless you use it for SEO purposes?

Can you tell me how to place overwrite it?

mrinterestfull avatar Mar 23 '24 17:03 mrinterestfull

In custom.css I tried adding:

background: url('../img/mysite.webp') center center repeat; but that doesn't work.

mrinterestfull avatar Mar 23 '24 17:03 mrinterestfull