This forum is for assistance with theme development.

Remove a directory from a base theme using the info.yml libraries-override

Hi, I have a base theme in composer that I cannot edit. I want to remove a directory called "smartmenus" from the base theme using the libraries-override in my subtheme info.yml file.

My base theme is: drupal8_zymphonies_theme and its path is: themes/composer/drupal8_zymphonies_theme

My subtheme path is: themes/custom/lps

I want to remove: themes/composer/drupal8_zymphonies_theme/includes/smartmenus

My current info.yml has this:

How to build multiple tabs with iframe or other something.

I need to build a theme style with multiple tabs. But i found it anything theme similar with it.

Only local images are allowed.

Get class on item.below (child item of menu) inside <li> tag in menu--main.html.twig

Hi I can't insert class in child item of main menu and remove existing. Part of my code looks like this:

Layout builder: section within a section

I am building my first Drupal site and using the layout builder to build a layout for the home page. How does one go about creating a section within a section? Use case here is that I would like to have an "outer container" and an "inner container" so that we can style such sections / containers differently. A layout / site may have multiple different backgrounds for sections (different shades) and I would like to apply styles to an outer section but create a section within that where my content blocks goes.

Any ideas? 

Best method to override theme

I'm new to Drupal and tasked with building a website in Drupal 9.3. I'm not a programer.  So please excuse my ignorance. 

What's the best, and easiest way, to override the default theme and have another theme used for a specific page/node. 

I want to use a custom theme on several pages on our site but I can't figure out how to have that theme applied to the target pages instead of the default installed theme. 

I've been searching for two days now and I can't find anything with clear instructions. 

how to render a block within a menu template?

Hi I have created a custom template for my menu.

I have placed the menu (as a block) within a region.

I have created another custom block which I am trying to render within that menu block, rather than as a seperate block.

However, nothing renders. I have tried printing something similar to below but nothing ever gets outputted.

$block_id = $myblock;
$block = \Drupal::entityTypeManager()->getStorage('block')->load($block_id);
return $block;

Pages

Subscribe with RSS Subscribe to RSS - Theme development