This forum is for assistance with theme development.

USWDS colors question

I'm looking to change the colors of these boxes, and could use some help if anyone is willing. 

https://designsystem.digital.gov/components/accordion/

I'm not sure where to put stylings, and I'm struggling with the documentation.

Drupal 10 - How to insert Views Block to node (auto)

Hi! Can you help me? How to insert Views Block to node (auto) without modules.

I have Content Type - Articles  I create tempalte page--article.html.twig and paste code from page.html.twig

My Views Machine name random_article block_1

What should i do next?

Extra Menu Elements like Images (drupal 10)

Using Menu Item Extras module, it is possible to add new fields to the menu items.

But when dealing with the Olivero theme, newly added fields are not shown.

The invocation method of the olivero.theme:

Suggestions for an Aggregation Theme?

I'm building a service that aggregates and/or syndicates news. I'm open to theme recommendations. The features needed: compatibility with the Feeds module, the ability to search by location and/or topic, easy creation of either a full news story or a short brief. The theme would need to be clean and easily navigated by users.

I've done some checking and there a several directory themes that partially meet those requirements, but they are largely based on providing business overviews.

Arrangement of fields

In a form created by the cli, fields are displayed with the label above and the input below.
I need to display, in this manner, multiple fields horizontally
I have done various tests with flex

...['#prefix'] = '<div class="flex-container-row">' ;

but I did not succeed
The CSS is this
 

.flex-container-row {
  display: flex;
  flex-direction: row;
  margin-top:20px;
 }

Accessing the fields of another internal page from within preprocess_field

I'm working on a theme that has a field color_theme which is set by authors on pages. This allows them to group similar pages together within a certain color style - eg. background colors, pullquotes etc.

Within other pages I am using the fantastic paragraphs module to create a page builder of sorts, and one of the fields which is used a lot is a 'button' field, effectively a link.

Within preprocess_field I'd like to set a variable for the twig template based on the logic below:

Pages

Subscribe with RSS Subscribe to RSS - Theme development