This forum is for assistance with theme development.

Block's border Bartik D8

Hi,

i'm adding pictures in blocks at the bottom of my drupal 8 website. But my bottom as a color brackground and we can see the block limits, the borders... Like a blank line. Why and how can i remove them easely ?

How Do I Change Node Class On Expire Date

I'm Developing a Coupon website using Drupal 8 and really enjoying playing with Drupal 8. However, I've created a node type called deal and added a date field named expire. Now I want to change or add class when the node reached the expire date so then it will be automatically marked as expire by changing node class from active to expire.

How do I create the functionality whether programming or using modules?

How to render a custom field using a formatter in twig when hidden from content display

Hey,

I have a custom image field and would like to use the colorbox field formatter to render the image in a a node twig template.

The field is hidden from the content display for various reasons.

Any idea how to render the image in twig using the colorbox formatter?

Alternatively how to get the D8 color box module to open an image specified in the href by adding a class like you could do in D7?

Thanks heaps.

How to use preprocess_node for custom node?

I know this is the core of D8 theming, but the documentation is really leaving me flat...

I read this page and, well... i ended up asking for help here :)
https://www.drupal.org/docs/8/theming/twig/twig-best-practices-preproces...

I copied /mytheme/templates/content/node.html.twig and made /node--view--nhp-news-slider.html.twig with some edits.
Now i want my slider to point to this new, edited node instead of the default.

Alter Markup In The Views Group By Title

I am currently trying to figure out how I can alter the markup of the Views Group By Title. I created a view that groups by a date field. The date field automatically becomes the Group By Title. I have been using the template_preprocess_views_view_field hook. Whenever I change the markup of the date field it changes it both in the title and in the view field as well. I want to just change the markup in the title.

Can't Get maintenance-page--offline.html.twig template to work...

I'm having trouble getthing the maintenance offline template to work. There's not a whole lot of documentation our there, but it seems like setting up a maintenance-page--offline.html.twig template should work.

I am specifying my maintenance theme in my settings. And the regular maintenance page works fine. But when the database is offline I just get a white screen with text.
$settings['maintenance_theme'] = 'xxxxxx';

Anyone else having issues with this? Or am I missing something.

Pages

Subscribe with RSS Subscribe to RSS - Theme development