This forum is for assistance with theme development.

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

Displaying parent field value in field.html.twig template from nested paragraphs

See attached please. Using field.html.twig and paragraph.html.twig, Paragraphs 8.x-1.16 Stable release and Drupal 9.5.10

field.html.twig:

Unable to disable cache (Resolved)

Hi all, I am developing a custom theme and I am trying to disable the cache so that I don't have to constantly flush the cache every time I change the CSS.

I referred to this document and attempted the first solution titled "The Easy Way" but the settings only seem to partially work.

I went to Admin -> Configuration -> Development -> Development Settings and I Toggled:

Bootstrap5 - Theming with the SDC components.

The new Varbase distribution is utilizing the SDC structure where scss and css formatting for its custom made components are in the modules directory tree rather than in the theme tree.

This whole concept is completely new to me.

I have generated a new subtheme based off of the vartheme_bs5 base theme.  That works fine.  I have tweaked the looks and feel of the vanilla bootstrap visuals (navbar, fonts, etc) via scss overrides and recompiled my base theme using yarn.

All is well so far.

Render child paragraph values in parent paragraph twig

I'm having the requirement to get the child paragraph field values in the parent paragraph twig considering my HTML structure.

So please give me any suggestion to get the child paragraph values in parent_paragraph.html.twig

Paragraphs module field value conditional in page.html.twig

Hi,

How do you detect if a Paragraphs field is not empty in page.html.twig. The solutions here didn't work for me

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development