Jasonyun Posted October 11 Posted October 11 Site URL: https://ukulele-chimes-ykxh.squarespace.com/config/ Hello, Does anyone know how to add a background image to the header? I've tried using custom CSS many times but haven't been successful. Does anyone know of a solution? Any ideas much appreciated.
Solution Spark-Plugin Posted October 11 Solution Posted October 11 (edited) Hi @Jasonyun, you can follow the steps below and use the code I’m providing to achieve what you need: Navigate to: Pages > Website Tools > Custom CSS Paste the code below into the CSS editor. Hit Save. Navigate to: Pages > Website Tools > Custom CSS Select ‘Custom Files’. Select ‘Add images or fonts’. Upload your image here. Now, look for the part in the code that says (IMAGE URL HERE). Delete the "IMAGE URL HERE" text, and leave the pipe symbol (|) in place. Scroll to the top, click on Custom Files, then click on your image. Its link will automatically be inserted where you deleted the text. Hit Save and you're all set! header#header { background-image: url(IMAGE URL HERE); background-size: cover; background-position: center center; background-repeat: no-repeat; } Hope it helps!:) Edited October 11 by Spark-Plugin - Answered by Iuno from sparkplugin.com
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment