This forum is for assistance with theme development.

stop ckeditor5-stylesheets from overriding admin theme?

We want to add our site stylesheets to ckeditor, but keep the admin theme styling intact and only style the elements inside the actual wysiwyg (ck-content).

In ckeditor4, we could just point to our site's front end stylesheet, which would then style all the elements inside the wysiwyg to appear like they would on the front end.

In ckeditor5, when I do this, the actual admin theme is getting restyled/overridden by our front-end style sheet. Form elements in particular are restyled according to our front end. This is not desirable.

Displaying Sibling Menu Items in the Center of a Page in Drupal

I have a Main Navigation menu structured as follows:

  • Home
  • Product Center
    • Shoes
    • Socks
    • Pants
  • Contact Us

When I click on "Shoes" in the menu, I want to display its sibling menu items (Shoes, Socks, Pants) in the center of the page, like this:

Shoes | Socks | Pants

How can I achieve this effect in Drupal?

Drupal 8 theme compatibility with 9 & 10?

This may be a dumb question that seems basic, but I have been unable to find anything online that will answer it. Is a Drupal 9 theme intrinsically compatible with Drupal 10, as is without any upgrading? Is a Drupal 8 theme?

If not, are there simple standard mods that I can do without hiring a theme developer that will make it work?

Drupal Core Forum - deactivate "tabledrag", another item, order for comments

Hello,
I need a very simple forum function for my site and I am currently trying out the forum module in Drupal Core. My Drupal is version 10.1.8.

But now there are the buttons "preview" and "add another item" under the comment function and to the right of the comment function there is also a sort function. In the code itself, this appears as a tabledrag function, but modules such as draggable views or weight are not built in.

Can I hide these functions somehow, because I don't actually need them and the function is just a nuisance?

How to automatically expand menus on mobile with Olivero

I have a website with the default Olivero theme. I want when the navigation bar display switches to mobile mode, the menus are automatically expanded. Like in this screenshot :

https://ibb.co/zXbjYLB

I created a scripts.js file in my Olivero subtheme. I imagine I need to add some code, but no idea what to put.

[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:

Pages

Subscribe with RSS Subscribe to RSS - Theme development