Custom Theme in Drupal 8

Create folder name custom in themes
Create Theme_Name folder in Custom
Create css,js,images,fonts,templates folder in themes folder
Create Theme_Name.info.yml
Create Theme_Name.libraries.yml


In Theme_Name.info.yml
name: Theme_Name
description: This is Expert Theme
type: theme
core: 8.x
package: other

libraries:
  - expert/global-css-and-js

regions:
  header_logo: 'Header Logo'
  header_contact: 'Header Contect'

In Theme_Name.libraries.yml
global-css-and-js:
  css:
    theme:
      https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,700&display=swap: { external: true }
      css/style.css: {}
  js:
    js/custom.js: {}
  dependencies:
    - core/jquery

Past Logo image in Theme_Name folder
and screenshot named image in Theme_Name

Comments

Popular posts from this blog

Drupal for beginner Basic required tool and data With some basic instructions.

Theme Starter Kit Drupal 10