Title: Possible BUG in CSS combination functionality
Last modified: April 22, 2021

---

# Possible BUG in CSS combination functionality

 *  Resolved [MatrixMedia](https://wordpress.org/support/users/matrixmedia/)
 * (@matrixmedia)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/possible-bug-in-css-combination-functionality/)
 * Hello!
    I may have spotted a bug when enabling CSS combination. In my stylesheet
   I have some rules like: `background-image: url('/wp-content/[something]/image.
   jpg');` Those works fine if CSS are not combined. When enabling CSS combination,
   those rules are rewritten like: `background-image: url(https://www.somesite.com//
   wp-content/[something]/image.jpg)` Note the missing quotes (‘) and the double
   slash (//). To make the option work, I replaced all rules with the static url
   like so: `background-image: url(https://www.somesite.com/wp-content/[something]/
   image.jpg)`

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Hristo Pandjarov](https://wordpress.org/support/users/hristo-sg/)
 * (@hristo-sg)
 * SiteGround Representative
 * [5 years, 1 month ago](https://wordpress.org/support/topic/possible-bug-in-css-combination-functionality/#post-14354613)
 * Can we have your site URL please so we can check it out? Generally, the plugin
   fixes relative paths without problems, so it must be an edge case!
 *  Thread Starter [MatrixMedia](https://wordpress.org/support/users/matrixmedia/)
 * (@matrixmedia)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/possible-bug-in-css-combination-functionality/#post-14366393)
 * Yes, sure: [https://www.trendhotels.it/](https://www.trendhotels.it/)
    The site
   is in production so I had to put the working URL or else it would not load some
   images, so you won’t see the error occurring. Can I help you with anything else?
   Thank you for your support!
 *  Plugin Author [Stoyan Georgiev](https://wordpress.org/support/users/stoyangeorgiev/)
 * (@stoyangeorgiev)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/possible-bug-in-css-combination-functionality/#post-14373497)
 * Hey there [@matrixmedia](https://wordpress.org/support/users/matrixmedia/),
 * Since the Combined CSS is moved to the uploads folder, we are building the absolute
   path inside of the CSS to make sure all assets are loaded correctly.
 * In your case, the path is not built correctly since you are adding relative URLs
   to the uploads directory and the URL is changed to domain.com/wp-content/themes/
   your-theme//wp-content/uploads/image as well as the double-slash you have given
   as an example.
 * The proper way to add those properties to the CSS is ../../uploads/image. By 
   doing this, the absolute URL will be built correctly and all images should be
   showing as expected. Also when using an asset from the uploads, you can always
   use the full URL instead of the relative one.
 * Kind regards,
    Stoyan

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Possible BUG in CSS combination functionality’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 3 replies
 * 3 participants
 * Last reply from: [Stoyan Georgiev](https://wordpress.org/support/users/stoyangeorgiev/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/possible-bug-in-css-combination-functionality/#post-14373497)
 * Status: resolved