#How do you reference a image in the public folder from css

1 messages · Page 1 of 1 (latest)

nimble belfry
#

Hi, I am making a theme and I need to reference an image in my public folder called background.jpeg from my css to put it has my background and I keep getting errors? How should I proceed?

delicate hazel
#

Try using <style/> tags in dashboard: wrapper instead of using dashboard: css

This should be documented on in the future; Dashboard css is bundled in React, which dashboard wrapper is not.

  1. Create a file ending in .blade.php: for example, wrapper.blade.php
  2. Assign the file to dashboard: wrapper
  3. Add your stylesheets, wrapped between <style/> tags.
  4. Build your extension