This forum is for assistance with theme development.

Help with the bootstrap_barrio theme?

The topic has not been updated for almost a year, when I give rights to edit the nodes, with the barrio theme, the layout looks awful help fix when I used the bootstrap3 theme.
When I go to the node editing page, by the user. How to change a button and its position. I turned on debug, saw the path form-element-label.html.twig, but when it was replaced from bootstrap3 theme, the button remained in "()"

Accessing parent block label from menu.html.twig

Scenario: I have a custom menu, full of links defined by an end user.

It's inside a custom block, also defined by an end user.

The block has a title the user picked.

I need to have a variable in menu.html.twig that contains the title of the block, as picked by the user.

So, if Sally creates a block named "Avast!" and then places a menu inside it full of links to pirate-themed web sites, I want to be able to put something like {{ block_name }} into menu.html.twig, and have it result in the phrase "Avast!"

How to remove the div around the rendered entity ?

I want to display the rendered entity of a group in the TWIG of a node.

In my type of node, I have a field that refers to the rendered entity of the parent group node--article--menu.html.twig :

{{ content.group_content }}

Here is the contents of the TWIG file of the group, the node must render this code without additional markup group--personnel--node-menu.html.twig :

"My Account" missing label

I'm working on a custom Drupal 8.7.8 theme, and have run into an odd issue: the user name in the "My Account" item is missing. The user icon is present, just no text, and it is misaligned.  The source code is as follows:

<a 
	href="/drupal/user"
	title="My account"
	class="toolbar-icon toolbar-icon-user trigger toolbar-item ally-focus-within"
	id="toolbar-item-user"
	>
		<span></span>
</a>

I have removed some ARIA information and some data attributes for legibility.

How to print the group ID in TWIG ?

I installed the Group module on Drupal 8 :

https://www.drupal.org/project/group

If I add the code {{ group.id }} in the TWIG of the group, it does not display the ID.

How to print the group ID in TWIG ?

Barrio Bootstrap wrong path

Hello! I use the Barrio Bootstrap  SASS Subtheme. I got an error, cause www.xyz.com/libraries/bootstrap/js/bootstrap.js?pzftt0 is wrong. The library directory is in sites. Whère can I fiix this?

Pages

Subscribe with RSS Subscribe to RSS - Theme development