This forum is for assistance with theme development.

User error: "0" is an invalid render array key ... when including a file with SVG code ?

 I have an icons.html.twig file, used to include icons where needed using:

{% include('@mytheme/icons.html.twig') ignore missing with { 'icon': 'arrow-right', 'classes': '' } %}

The file itself contains the SVG code for each icon ...

Twig template field empty vs field|render empty

I'm new to Drupal and inherited a site that, originally, had a template that was conditional on the existence of a sidebar. The original code was as follows:

Unexpected errors while creating/editing node

I have been getting some unexpected errors while creating and saving nodes.

Example:

Type:     page not found

Location     https://mywebsite.com/home/username/public_html/%e2%80%93

Referrer     https://mywebsite.com/name-of-the-clean-url

Message: /home/username/public_html/%e2%80%93

Severity:     Warning

Deciding the Perfect Base Theme for Your Drupal Custom Theme (Bootstrap(3/5) or Stable 9 )

Hi, 

While working on the custom theme development it is important to select the right base. As there are quite a few of theme base themes available to choose from am not sure which one to choose. I have come across two base themes: Bootstrap(3/5) and Stable 9, and am not sure which one will be the right choice for me as both Bootstrap(3/5) and Stable 9 have their own pros and cons.

Error: This theme is not compatible with Drupal 9.5.9. while creating info.yml file

Hello

My installed Drupal is version is 9.5.9 in the hosting server.

I am following a YouTube tutorial for new theme creation.

The info.yml file is:

name: Simple Smart Classy Version
type: theme
description: "A sleek & practical theme for curios mind"
core_version_reqirement: ^8 || ^9
core: 8.x
base theme: classy

Pages

Subscribe with RSS Subscribe to RSS - Theme development