• Resolved alx359

    (@alx359)


    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)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi @alx359,

    It’s because PhastPress did not yet process url() in CSS when it included whitespace. This would work:

    url('../image/nav-arrow.png')

    But not this:

    url( '../image/nav-arrow.png' )

    This has been fixed in version 1.105. After updating, the problem should be resolved.

    –Albert

    Thread Starter alx359

    (@alx359)

    Can confirm that all seems to be working now. Thanks!

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.