Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By shaunmilo on
I'm using a custom theme and when I integrated my own html.html.twig structure (based off the one from core), the admin toolbar disappeared and hovering over block/view elements no longer shows the configure/edit menu actions. The top toolbar is there when I access one of the admin pages on the back end, but when viewing the site itself, it's not there... even though I'm still logged in as admin. I've cleared the cache multiple times, but still no dice.
Do I need to render/output the display of the admin toolbar in my htm.html.twig file?
Comments
Sounds like you may have a
Sounds like you may have a JavaScript error. Open the page with a JavaScript console open, and see what it tells you.
Yeah, it's trying to find
Yeah, it's trying to find jQuery hoverIntent in /libraries/jquery.hoverIntent/ but keeps returning a 404 not found for some reason... I'll see if I can download it and hopefully that will fix everything
EDIT: Fixed the missing 404 javascript error with hoverIntent, but the main issue still remains. No javascript errors now, either :\
ヽ( ̄(エ) ̄)ノ
Yes, you must have this in
html.html.twig
:{{ page_top }}
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.