We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Images in CSS files not loading when using $this->EE->cp->load_package_css()

Development and Programming

Brett DeWoody's avatar
Brett DeWoody
140 posts
about 16 years ago
Brett DeWoody's avatar Brett DeWoody

In my CSS files I’m using some background images which are all in my third_party/[add-on]/css directory. But the images aren’t loading when using $this->EE->cp->load_package_css().

If I load the CSS directly (by including a <link …) the images appear.

So when using $this->EE->cp->load_package_css() do the images need to be in a certain directory? Or called in a certain way?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.