This forum is for assistance with theme development.

Problems after activating Stylizer

Hello
Sorry about this, but I am working with Drupal 7 and i'm in trouble...

I activated the "Stylizer" and "Colors" modules.
After i did that, the edit article page is different: Now I have more fields, and some buttons doesn't work - i cannot change from plain text to php editing, for example. I deactivated the modules, but the changes persist...

I am searching about it and trying solutions, but I cant understand what happened. I assume i have different codes that conflict with each other.

Display svg image paragraph field with Twig

Hi,

I'm trying to display a single <div> with 3 fields from paragraph:

  • field_svg = svg media library file (I use the svg_image_field module that deals with D10 media library core module)
  • field_first = integer
  • field_second = text

The following code works fort field_first and field_second. NOT ok for field_svg, of course.

Display field suffix in Twig

Hello,

in the paragraph field "myparagraph", I'd like to display the field_first value AND ALSO the field_first SUFFIX.
I setup the field in order to display both prefix and suffix. That works when using the common Twig code {{ content.field_fieldname }}. NOT when displaying all infos like that:

creating a navbar layout the right way

Hey, 
I am trying to make a navbar with search box as shown below:

https://ibb.co/D1xCHQQ

Usually I would create a twig block and use twig module to import the blocks all into one then add css to make it display flex.

As I am self taught, I would like to know if there is a better way to achieve this layout without the need of creating custom twig files. 
I am trying to find ways to use minimal custom twig files. 

Any guidance is highly appreciated. 

Urgent Help Needed: Struggling with Drupal Theme Development

Hello Drupal Community,

I hope this message finds you well. I am currently facing a challenging issue in my Drupal theme development process and am in desperate need of your expertise and guidance.

I am working on customizing a Drupal theme for a client project, and I have hit a roadblock that I can't seem to overcome. The problem I am facing revolves around the responsive design of my theme. Despite my best efforts, I am unable to make certain elements adapt properly across different devices and screen sizes.

How to pass attribute/variable to child template

While trying to remove unneccessary <div>s from twig templates I stumbled upon a problem with image alignment of inline media items.

Steps to reproduce:

* Drupal 10, starterkit theme with stable9 as parent theme
* create content with CKEditor5
* insert image via media toolbar button (from core media module)
* align media/image centered
* save page

Pages

Subscribe with RSS Subscribe to RSS - Theme development