This forum is for assistance with theme development.

Modifying the field help text

Hi,

I'm trying to expand the range of html tags that can be used in the 'Help Text' for fields. I’d like this to be applied to all fields.

I've been trying to use a D7 example and updating for D8/9, but I'm running into problems. This has led me to a lot of API stuff, that I'm not fully sure I'm understanding.

Here's what I've got:

How to get $variables in a preprocess function

I'm trying to inspect the $variables that is available to a preprocess function, e.g.:

function mytheme_preprocess_node(&$variables) {
  debug($variables);
  ...
}

It doesn't work (site just crash).  Also tried dpm() and kint() with no luck. Google told me that others also struggle with this., but found nothing that actually worked.

How to disable some regions for admin theme?

Greeting,

I have my custom theme with some regions. For admin purpose I am using a Seven theme. Currently, if I have some blocks in regions presented in Custom theme but missing in admin Seven theme (for example some footer widgets), these blocks are shown in admin theme in main content region like just stacked "all block without found regions".

I can set up a block visibility by urls like "not showing to admin/* node/* " etc but it seems a bit wierd, because I need only a main content area (id=block-system-main)

How to stack content sideways on the front page?

I am working on a theme for Drupal 8/9 that is based upon Bootstrap 5. I use sass to generate style.css from .scss-sources.

I have a content type named "Polaroid". It has fixed width an height (300 by 350 px). I want to show this content stacked sideways. The visual effect I am looking for is similar to what you could get with the Drupal 7 project DAN Polaroid (screenshot below):

How to add an ID selector to Stylesheet?! D7

How to add an ID selector to Stylesheet?!

Stylesheets are added through .info file....

or is there another way?!

I am researching the ways to switch themes by user, the ID would help a lot...

Drupal 7

Joomla convert seeking to build a Bootstrap 5 based theme for Drupal. Please Advise.

Hi.

I have been using Joomla for years and also made few themes for it. But now since 3.X is long in the tooth and J4 is not stable enough (esp for Chromium based browsers) yet I have decided to convert to Drupal.

I have to say I am so far blown away how awesome Drupal is!

Now, I am building a simple shop website for my software and games. I would like the website to have esthetics of Battle.net with possibly implementing a nav menu similar to that on gog.com.

Pages

Subscribe with RSS Subscribe to RSS - Theme development