This forum is for assistance with theme development.

How to Get the Use Logo Value from Theme Settings

Greetings,

  I have created my own theme in drupal 9 and am trying to get the value of a theme setting called:

'Use the logo supplied by the theme'

This is a standard drupal setting which is on my theme configuration page.  I want to use the setting to alter my theme.  I've seen how to create my own user setting and get the value with

$setting = theme_get_setting('my_setting');

but in this case I'm trying to get the value from a for the CMS has created.

I've tried this

$logo = theme_get_setting('default_logo');

The libraries of my customized theme cannot be loaded - Drupal 8

I'm trying to translate my Drupal 7 theme to a Drupal 8 theme.

I followed the instructions to add my CSS and Javascript files by creating the *.libraries.yml.

This is my babol_dp8.libraries.yml file:

Aligning text in CKEditor, best practices

Say I have a site and a theme that uses Paragraphs for content creation. I have a basic "Text"-paragraph for inserting formatted text to a node. Sometimes the text needs to be aligned left and sometimes center.

Because most of the text is aligned left, I'd use some sort of option to align it center when needed. For this I have many options to go with:

Create a module that display calendar

How we create a Module that display the calendar according to the events in drupal?

Basic page address in dupal template

Hello guys 

I want to active google analytics and for some reasons i couldn't install module for that and also i dnt know drupal structure  

what is the basic page address so i copy and paste google analytics code in the header?

How to iterate image field having multiple images in in views-view-fields.view-machine-name.html.twig?

Hi,

I have a field for slider images, I want iterate all images in views-view-fields--view-machine-name.html.twig, currently I am only able access raw html using {{ field.content }}.

I tried following, but no luck!:

{{ field.items }}
{{ field['#items'].list }}

See screenshot here https://prnt.sc/v2654o, getting empty list.

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development