This forum is for assistance with theme development.

Execute SVG inline JavaScript in node

Dear Knowings,

I'd like to integrate a SVG-Image with inline Javascript to a node. The image is a map. When I hover a region of it, an explaining picture is shown. When I leave the region, the picture is unvisible. Therefor I need the script. It's generated in Inkscape with the function "plugins|internet|javascript|add attribute".

It's not the problem to insert the SVG with <svg> tag. I manged it with the module "svg image". So I am able to create a media SVG and insert it in the node as media. But the script-code is commented out. How can I prevent that?

Specifying an Install Path for PACKAGE.JSON

I have a project I'm working on, but I've encountered a new situation. Usually with NPM, I just "NPM INSTALL [packagename]" and let it do its thing. But as I'm building my theme, I need that package to go to a particular location. I know with COMPOSER.JSON, I can use the "INSTALLER-PATHS" to point things where they need to go; but multiple searches on Google have come up bust, as far as PACKAGE.JSON is concerned. Can I just use "INSTALLER-PATHS", same as in COMPOSER.JSON or is there something different?

Adding for loop in Drupal 8 theming

I would need a small help to get the output by adding the for loop. I have a view which has a image field. And I would like to theme it, I have created two view templates called "views-view-list--image-article.html.twig" and "views-view-fields--image-article.html.twig"

I want to achieve the output in the below format. Here "wrap clearfix" div is repeating and the inner divs "lhs-img" and "rhs-img" are also repeating.

Blocks? Views? Which Twig?

I'm... I guess an "intermediate" Drupal developer. Still branching out, still learning new facets of Drupal. I appreciate this opportunity to pick your brain.

Which blank / starter theme to use for Drupal 9?

Hello,

I've just downloaded the newest version of Drupal (9.1.3). Because many older blank themes (e.g. Zen) are not compatible with Drupal 9.1.3 anymore, I have problems developing my theme. Also instructions on how to convert an html5 site to a Drupal theme are not up to date.

Can someone please help me with converting my html5 page to a drupal theme, or give me advise on which Drupal theme to use when developing a new theme?

Thank you!

How to ignore a stylesheet with Drupal 8 and Barrio ?

I have a sub-theme based on Barrio. My site's maintenance page uses a Barrio theme stylesheet.

How to ignore this stylesheet ?

https://git.drupalcode.org/project/bootstrap_barrio/-/blob/5.1.4/css/mai...

Here is the info file of my sub theme :

bootstrap_subtheme_front_office.info.yml

Pages

Subscribe with RSS Subscribe to RSS - Theme development