0

im making a custom menu for the homepage. My issue is that whenever I change block--system-menu-block.html.twig to something else that it suggest in the debugging like for example: block--system-menu-block--main.html.twig or block--hoofdnavigatie.html.twig it's not showing up anymore. I've cleared cache, switched themes, but nothing works. It does show up in the dubugging tool that firefox has but theres 0 content in it.. Am I doing something wrong >?

1 Answer 1

1

I've tried this on my site and used main navigation and it worked. block--mainnavigation.html.twig

What you can check:

  1. Of course check if you have some typo in file name, or try with default navigation to see if it works.
  2. https://www.drupal.org/node/2598914 Try to disable Twig cache while you are developing.
  3. Try to use cache rebuild with Drush https://drushcommands.com/drush-8x/cache/cache-rebuild/

I don't think that you are doing something wrong, problem is with caching I believe.

1
  • I think it was something with the cache like you said. I tried those 3 steps and its fixed :) still dont know what the problem causer was tho Jan 31, 2017 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.