issue with image in ccs file with relative path
-
Just noticed PP doesn’t seem to like relative images referenced inside css files.
For a css file located somewhere like this:
https://dev.domain.com/wp-content/plugins/plugin-name/assets/css/file.css
and containing an image referenced like this:
background: url( '../image/nav-arrow.png' ) no-repeat center;
I’m getting in the FF console:
GET https://dev.domain.com/image/nav-arrow.png [HTTP/2 404 Not Found 57ms]
While the actual path of
nav-arrow.png
is:https://dev.domain.com/wp-content/plugins/plugin-name/assets/image/nav-arrow.png
The issue doesn’t happen with PP switched off (latest version to date).
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘issue with image in ccs file with relative path’ is closed to new replies.