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
Theme Starter Kit Drupal 10
Sub-theming has been a core part of Drupal since the early days. Creation of a sub-theme has generally been a manual process by typically inheriting from a core theme or any contrib theme to use some already available markup and styling. The Drupal Starter kit will completely change the perspective of the sub-theme (Child theme) for the developers. Why use THEME Starter Kit Drupal has been providing the subtheme concept for many years. But recently we all have noticed about the classy theme that it's not receiving any updates from drupal 8.0.0 and our earlier site is dependent on classy. The concept of sub-theme is known for using some common makeup and CSS of the parent theme and our site is dependent on classy and also needs updates. Sometimes sites are not able to restart from scrap(Very beginning). So drupal comes with the new concept of THEME STARTER KIT DRUPAL 10. Drupal has introduced starterkit in branch 10.0.x and the version is 10.0.0-beta1. Features Drupal will p...
Comments
Post a Comment