Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Theme not showing correctly when adding CSS/JS library

By editor , 27 November, 2015
Question

When I add CSS/JS library, Drupal 8 / Theme not displaying correctly.

Probleme 1.
If you are activated 'Aggregate CSS files' on admin/config/development/performance, Disable it and refresh the page.
If the page display correctly, Probleme is in CSS Aggregation.
1. Check Permission to write on drupal_site_folder/files/css (exemple drupal/sites/default/files/css)
2. For the moment, you can leave this function disabled (decrease the performance).

Probleme 2.
File not writable. ("The file could not be created")
1. Check tempory folder on admin-> config -> file system ( Under Media )
2. Check Permission to write on drupal_site_folder/files/css

After all, do not forget to clear all cache (drush cr OR admin/config/development/performance)

Tags

  • Drupal 8
  • Error
Drupal 8 not Display or Rebuild correctly

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer