This forum is for assistance with theme development.

[SOLVED]Drupal 10 twig not rendering entity field[/SOLVED]

I have added some custom fields to a content type, and when I put the site into twig development mode I get this from a dump:

Drupal 10 Bootstrap 5

Good morning, after days I find myself forced to write for help... I have already tried many installations of bootstrap5 on the drupal10 platform. As for the CSS, I can make changes (inserting variables in _variable_bootstrap.scss and recompiling) while I can't see the bootstrap views (accordion, carousel, etc.) working. I believe the problem is related to the javascript code that is not considered. What do I have to do though ?
Thank you

GET 404 Error - resource was blocked due to MIME type mismatch

Recently, I developed a subtheme using Boostrap and then I deployed it to production. When I was developing the theme locally I had no errors, but as soon as I deployed it to production, I started getting these two error messages:

GET 404 ERROR: https://website.com/themes/mytheme/css/theme/style.css?sa5rad

The resource from “https://website.com/themes/mytheme/css/theme/style.css?sa5rad” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

How to add JavaScript function to theme?

Hi,

I created a subtheme recently and I'm trying to add a JavaScript function, which toggles on and off the visibility of the main navigation menu.

In my theme, I created a JavaScript file and added my function:

hook_theme is it still allowed in Drupal 10

hi,

hook_theme is it still allowed in Drupal 10 ?

if not, what should be done to use the templates.html.twig ?

Thanxs


css load order

I have the following theme hierarchy

A <-- B <-- C

Essentially the theme B inherits from the theme A and the theme C (that I develop) inherits from theme B.

Then, at a certain time I've realized that some CSS files provided by the theme B are included after the files provided by my theme (theme C) in this way overwriting my styles. Instead I would like exactly the opposite to happen: I want to overwrite some styles provided by the theme B in my theme C.

Pages

Subscribe with RSS Subscribe to RSS - Theme development