Changing backgrounds in Able theme
I’m attempting to get some custom backgrounds working in the Able theme and have run across some problems.
Here is the CSS I am using
The first problem is that while this has the two backgrounds working in the CSS editor if I save and then look at my blog I don’t see any changes.
The second problem is that even in the preview I don’t get a white box for my content.
Just to note that I get a warning on the above ‘body’ CSS to “make sure you add ‘.custom-background’ to your ‘body’ selector”
The blog I need help with is honestpuck.wordpress.com.
First thing I see is the URLs are not “absolute” URLs starting with http:// .
Secondly, #page-liner has a “background” declaration so you need to use that to override the #FFFFFF specified there. Background will override background-image.
Thirdly, I see no background image declared for .entry-content, so you are hiding something that doesn’t exist.
Also, I don’t think WordPress.com supports svg images.
The URLs don’t need http: as they are data URLs not page URLs. They should be fine. They work fine when previewing in the CSS editor and work as they are in the page I grabbed them from – http://philbit.com/svgpatterns/
How do you suggest I override the background declaration? I thought defining a background-image after the background would override it?
I would make them background declarations instead. You could use the !important attribute, but that would be sort of a hack. The right way, at least here at WordPress.com would be to use the same declaration.
It might show in preview since the CSS would not yet have been run through CSS tidy and the filters here. At least that is what I suspect.
I’ll tag this for staff attention and hopefully someone will come around in a while and verify that one way or the other.
Aaaah, I didn’t realise that it was filtered by WordPress.com
That would explain it!
OK, so I can’t use SVG and will have to create actual images to do it. Rats!
Tony, I’m pretty sure that is the case, but keep an eye on this thread and wait for staff to verify that.
Howdy! Just popping in to confirm that we do not allow SVG graphics on WordPress.com for security reasons. Hope this clears things up!
Thank you sixhours. Now I know :)
The topic ‘Changing backgrounds in Able theme’ is closed to new replies.