This forum is for assistance with theme development.

Charity Zymphonies Theme 2.0.2

Hello! Has anyone a documentation of this theme?Thanks

How can I build 2 or 3 columns in Olivero (Webtheme)

I use the Webtheme subtheme of Olivero .

I want to add view blocks in the main region:

PART1 - PART2

Like this https://prnt.sc/8qFkfgYASTW4 (or https://screencast-o-matic.com/i/c3XQbjVuPGI)

and at the screen resize (for small devices) to be

PART1

PART2

.

I'm interested if somebody has some examples of good practices with Olivero to make this.

Unable to read/compare title of page

I have the below twig file where I would like to skip the page title, in case the title is a specific text (let's say "SkipTitle").

However, I am not able to compare the value of title - e.g. like 

{% if title =="SkipTitle" %}  

Have tried a lot - also using title.value, title.label etc. But not sure how to actually access the text value of title.

Anyone who can help, would be much appreciated.

New theme not visible

Hello!

I am trying to make my own theme, I am a beginner. I installed it, I could set it as default, but, when I enter the site, it says "The website encountered an unexpected error. Please try again later". If I look at the error code in the cosole, it says 'Failed to load resource: the server responded with a status of 500 (500 Service unavailable (with message))'

A picture of the folder:

https://ibb.co/Fg0vchn

Could anyone help me, please?

I have Drupal 9.4.8 and those are my codes:

Adding js through theme not loading

I've just started on a custom theme extending stable9. The CSS is being loaded properly, but the javascript isn't. The following code is a testing page just to check if the code is working. Is there something I'm missing? The code works when I place it inline but I'd prefer to have it as an external file for good practice. 

My info.yml looks like this: 

Pages

Subscribe with RSS Subscribe to RSS - Theme development