This forum is for assistance with theme development.

Drupal 8: attach library according to taxonomy term

Hello,

I'm new to Drupal and developing a theme for a site on Drupal 8. I want to add a preprocess hook to my THEME.theme file that looks up taxonomy terms for nodes.

Add CSS Class to form fields (Edit Mode) ?

Hi,

Any module available for adding CSS Class to form fields (in Edit Mode) ? I found field_formatter_class, fences, semantic_fields but only working for Display (View Mode).

I do NOT want to play with theme functions which are hard-coded and not user-friendly for clients.

Drupal 8 - Get domain url in mail template

Hi,

I would like to get the domain url to my website in the mail template (use with a contact form).

I create a plugin to manage my mail system.
I add the $base_url variable in hook_mail : $variables['base_url'] = $base_url;
and get it on my template with {{ base_url }}

But I get nothing

Have you an idea ?
Thanks

Display a menu in the Foundation 6 off canvas region

How do I load my Main menu in my Foundation Off canvas region off-canvas position-left?

In menu--main.html.twig I have below structure for my desktop menu:

Add html surrounding a module

Hello,

I'm pretty new to Drupal, i've started to create a theme from scratch using Drupal 7 (can't use 8 due to PHP limitations on my university webspace) for a university project. I've created a node.tpl.php file, which surrounds 'body' content in a div, however, when trying to use the in-built contact us form, as well as certain other modules. I've noticed it doesn't get surrounded by the specific div's i've created.

Altering the output for the ubercart 3 cart summary block when collapsed

I'd really appreciate some help with the ubercart cart summary block. I'd been looking everywhere for tutorials but most of them are for the previous version of ubercart or just over my head.

Here's how the summary block looks now
Only local images are allowed.

Pages

Subscribe with RSS Subscribe to RSS - Theme development