This forum is for assistance with theme development.

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

[Solved] How to choose/create a clean base theme for Drupal 10 (starterkit, stable9, none/system)

I'm new to Drupal and I spend the last weeks with learning Twig, CKEditor5 and module/theme development. My goal is to have a clean base theme:

* zero JavaScript files from core or parent theme
* all unneccessary <div>s removed
* minimal or no changing dependencies (twig templates and CSS)

This base theme should than become either the parent theme for my actual themes or serve as a base/starter git repository.

subtheme.theme file not recognised

I am on Drupal 9

I am using W3css as by base theme (drupal8_w3css_theme).
My theme's name is storm
 

All my templates and css files are recognised and they do change the layout and look and feel as I want.
However here is the problem.

I want add storm_form_node_form_alter hook in my storm.theme file
I added it however there is no effect.

What is the advantage of compiling bootstrap? And how to circumvent it?

Hello,

there are a couple of base themes etc. where I have to use composer to install the theme and then use NPM to install / compile it?
(e.g. Radix 5.x)

What is the advantage of not using the old methods of simply having theme files and css files and things work?

Is it possible to avoid using NPM?

And do I have to install NPM on my production server as well or is it just for the dev environment?

I didn't do much front end work within the last 2 decades ;)

Thanks,
Transmitter

Pages

Subscribe with RSS Subscribe to RSS - Theme development