This forum is for assistance with theme development.

Javascript not added via library

Hello

I have a strange and frustrating problem with my own javascript file on Drupal 8 theme.

I try to start a simple carousel by firing a javascript function - except that the javascript file doesn't exist.

Though this is my first d8 project, I think that I know how things SHOULD happen, but my problem is that they don't happen. Let me explain what I have done and what happens then...

I have my theme.info.yml LIKE

Adding Span element within anchor element in a custom menu

I have created a custom menu with machine name menu-cmenu and printing it in page.tpl.php with:

Block and theme development

Hey community. I'm new here and to Drupal dev. I'm working on implementing a full width top-banner with a countdown on it that is attached to a certain content type. What is the best way to achieve this?

Detecting Chrome

I'm using Drupal 8 and wanted to know how I can tell within my module if the user is browsing with Chrome.

Thanks

Override field value

I created a field called grade, for a student content type.

This field is an integer field that goes 0 - 12.

It later came up that my client wants to display the 0 as a k. I wanted to know if there was an override function I can use to check if the field value is 0 for a particular node, and if so, display a k instead of a 0.

Can I read a yaml file from a twig template?

To abstract some vars I would like to read a yaml file to get some vars into my twig files.

Is this possible?

Thank you

Pages

Subscribe with RSS Subscribe to RSS - Theme development