Dino Geek, try to help you

How to use custom styles in Drupal 8?


To use custom styles in Drupal 8, follow these steps:

1. Create a new custom stylesheet: Create a new stylesheet by creating a new file with the extension “.css” in your Drupal theme folder. The name of the file should be something like style-custom.css.

1. Attach the custom stylesheet to Drupal: Open the .info.yml file in your Drupal theme folder and add the following code at the end:

```
stylesheets: – css/style-custom.css
```

This code will attach the custom stylesheet to Drupal.

1. Write your custom styles: Open the custom stylesheet you created and write your custom styles using CSS. Make sure your CSS rules are properly formatted and use appropriate selectors.

1. Clear Drupal cache: Clear the Drupal cache so that Drupal can pick up the new custom stylesheet.

Now you can preview your Drupal site and see the new styles applied.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use