Using a background image on Hemingway Rewritten
-
I’m trying to put a background image behind the content on some pages.
The page is contained within a <div> that has both an id and classes. In Chrome developer mode I can see the CSS code and it is showing as active but I still get no background image.
#d_rainey {
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-image: url(‘https://wp.me/a5yetz-g3’);
}It appears that this should work but I’m obviously missing something.
Thanks in advance
AndyThe blog I need help with is: (visible only to logged in users)
-
-
-
There is a background image but it is fixed because of this property:
background-attachment: fixed;Try removing it and see if that is what you want.
-
I found it yesterday!
In my code I was selecting the background image using the shortlink URL from the edit page and not the “File URL”. When I entered that shortlink URL into a browser it was a link to a full themed wordpress page containing the image and not just to the jpg image itself.
When I used the “File URL” to the image (get this from the Save panel on the right in Media edit window) the image appeared.Thanks for your help though.
Andy
- The topic ‘Using a background image on Hemingway Rewritten’ is closed to new replies.