Normally, when using layout builder you can edit the configuration of blocks that have been placed using contextual links. When using a Gesso-based theme, these contextual links do not appear.

I already applied the fix suggested in #3073339: Block contextual links missing if title is hidden but still the links do not appear. I believe these are normally attached through the attributes, but it's harder to troubleshoot with Gesso because it relies on the custom add_attributes twig function. Can someone suggest a fix?

Comments

mandclu created an issue. See original summary.

clafferty’s picture

Assigned: Unassigned » clafferty

I just tested with the dev version and I see the contextual links for blocks in Layout Builder. The change that was made to fix this issue can be seen here:

https://github.com/forumone/gesso/pull/344/files

Have you made that change to that specific file? Are your blocks being run through a different template that doesn't have the change or doesn't print out the title_prefix/suffix? Basically you just need the title_prefix and title_suffix to be printed in whatever template is rendering your blocks (whether the label exists or not). You may need to clear cache for the change to take affect. If you're still seeing this problem after that, can you provide more details to replicate?

clafferty’s picture

Version: 8.x-3.2 » 8.x-3.x-dev
Assigned: clafferty » Unassigned
dcmouyard’s picture

Status: Active » Closed (outdated)