This forum is for assistance with theme development.

View keeps changing theme

I have a view

It used to be called 'page_1'
It is now called 'c_page'

I have created a template called 

'node--view--branch-list--c-page.html' to render this view

This worked perfectly for many weeks. Until now

Sometimes when i load a page created by this view it is very very glitched.
And sometimes when i load a page created by this view it is fine.

After much investigating i discovered that this is happening because the template suggestions are different on each page load

sometimes the first two template suggestions are

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?

Pages

Subscribe with RSS Subscribe to RSS - Theme development