• Resolved NicheLabs

    (@allennichelabs)


    Under Advanced Asset Optimization, if I mark my theme’s CSS file to be inline I lose all my background images since the CSS file calls the images using relative directories (ie. images/background_image.jpg) rather than absolute directories (https://website.com/wp-content/theme/mytheme/images/background_image.jpg).

    Is there a way around this or do I need to edit my theme’s CSS file? I would rather not make that change since it requires making a child theme so I don’t lose these changes when the theme is updated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Prathamesh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @allennichelabs,

    I went and tested this on my lab site and was not able to replicate it on my lab site with a default theme. I did make some custom additions to replicate the issue by making a theme and assigning background images and them inlining those CSS files to check but was not able to replicate the same.

    Could you tell me which theme are you currently to install the same on my end and check this further? Though I’m not sure we would have the theme if that is a premium one. Looking forward to hearing from you.

    Regards,
    Prathamesh Palve

    NicheLabs

    (@allennichelabs)

    It’s a custom theme that was developed inhouse. Strange that you cannot replicate it. The css file uses background: url(images/background_image.jpg); When I set it to make the CSS inline and I look at the site, the background image doesn’t display and when I look at the source it shows the CSS as background: url(images/background_image.jpg), so it’s looking for the image from the home directory rather than the template directory.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @allennichelabs

    Could you please send me an email to contact@wpmudev.org using this template:

    Subject: “Attn: Dimitris

    Message: link back to this thread for reference

    Keep in mind the subject line, as it ensures that it gets assigned to me.

    Thank you,
    Dimitris

    Plugin Support Jonathan – WPMU DEV Support

    (@wpmudev-support9)

    Hello there @allennichelabs

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.