This forum is for assistance with theme development.

Custom Theme and Layout Builder

I've got a custom theme that I'm using on multiple sites, the issue is I'm trying to incorporate Layout Builder and when I add a custom block that has a twig file it will not allow me to edit or delete the block. I found that some out of the box themes have patches but there is nothing that I can find for getting this to work if you have a custom theme. Can anyone point me in the right direction to get this to work with my custom theme?

Upgrading D7 to D8, cannot use jquery from core or theme breaks

Upgrading site from D7 to D8. No custom modules. This is my base libraries.yml file.

global-assets:
  version: VERSION
  css:
    theme:
      css/cheslalitportal.css: {}
      css/icomoon.css: {}
      css/cheslacustom.css: {}
  js:
    js/main.js
  dependencies:
   - core/jquery

When everything is enabled

Import fontawesome 5.12.0 hosted locally [SOLVED]

Hello.

I'm creating a new theme from 0 and want it to be the most self-contained, hosting locally all the stuff I can and depending the less on modules.

I'm trying to use the latest font awesome (5.12.0) importing it in the same way I did before with 4.3.0 :

In mytheme.libraries.yml :

fontawesome:
    version: 5.12.0
    css:
        theme:
           vendor/fontawesome/css/fontawesome.min.css: {}

In mytheme.info.yml :

possible to create a custom block (with content) at theme installation?

Greetings,

is it possible to create a custom block (with content) at theme installation with a "/config/optionnal/configuration-file.yml"?

i know already how to place a native system block with "/config/optionnal/configuration-file.yml" but i am wondering if it's possible to create a custom block with content whit it.

I saw in a theme that it's posibble to create a new type of block whit "/config/optionnal/configuration-file.yml", so it might be possible to create a basic custom with content i suppose.

Thank you

How does the number of class count on my page and display it in my menu ?

I have a site with Drupal 8 and I have created contextual views to display the tasks to do for the user. It works, but I need a counter in my menu.

Each type of task have a class :

  • For red tasks, there is the class .task-danger

  • For orange tasks, there is the class .task-warning

  • For green tasks, there is the class .task-success

Adsense Yerleştirme

Merhaba herkese siteme adsense reklamlarını güzel yerleştirmek istiyorum reklamlar temayı bozuyor bunu nasıl çözebilirim  site https://rmznyldz.com

Pages

Subscribe with RSS Subscribe to RSS - Theme development