This forum is for assistance with theme development.

How to get raw views--view data (or the output of the query)

Hello,

I want to have a different HTML tag rendering for my content fields. Currently I'm using views-view-fields--[myview_name].html.twig and I can access the fields using {{ fields.field_name.content }}. But {{ fields.field_name.content }} is actually a HTML rendered field.

How do I get the raw data from the view? Something like {{ node.field_name.value }} from the views-view ?

Thank you for your time

CivicTheme install issue Drupal10

Hi all, whenever I try to install the CivicTheme i get the following errors. If it do install it I get no banner styling etc. What could be wrong....

How do you access a Document URL Alias through an overridden TWIG template?

Using Drupal 10.2.5, I am currently accessing documents within an overridden TWIG template using the URL with the following code:

<a href="{{ file_url(node.field_document.entity.field_media_document.entity.fileuri) }}" target="_blank">

However, I’d really like to be able to access the document using the URL Alias set for the document within the media library.

Solo main menu first level

I want to make only level 0 transparent in the solo theme's main menu. If I use the predefined color scheme, I don't know what to apply the transparency to.

many thx,

attila

how to use custom fonts

hello,

We are moving our site to Drupal.  We are using a font from myfonts.com.  I created a folder in Drupal and copied all of the myfonts files there, including the css file.  I tried linking to the css file, but it's not working, not loading.  I also tried adding the css file to the libraries.yml file, based on an article I read.   How should custom fonts be set up in Drupal?

thank you

[Solved] Can't find file to make simple edits to homepage template

Hello,

My site is setup to show links to our social media pages in our header area.

Under:

/public_html/sites/all/themes/ourtheme

I was able to update one of these links as needed in this file:

page.tpl.php

The change has been successful on every page of our site except for our homepage, even after deleting and refreshing cache.

I'm not a developer, just trying to figure things out as I go.

Can anyone please let me know if there is a separate file that controls what shows on the homepage that needs to be edited as well?

Pages

Subscribe with RSS Subscribe to RSS - Theme development