Local background image not loading?

I am trying to set a background image using css. This is in a Wordpress child theme, and I need the file inside a specific directory.

The file is at assets/plugins/royalslider/rs-default-fs/png

I set the background image with background: url('http://myurl.com/wp-content/themes/theme-name/assets/plugins/royalslider/rs-default-fs.png');

I get a 404 for that url, though…

What am I doing wrong? I am positive that the image is in the specified url.

I suspect a typo and that you mean

/plugins/royalslider/rs-default-fs.png

I don’t suppose the problem is due to a typo somewhere in your CSS is it?

2 Likes

Sorry, that was a typo. It /plugins/royalslider/rs-default-fs.png.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.