0

I'm theming some specific Drupal 9 pages with custom templates (e.g. page--node--17.html.twig).

That said, the theme carries over when I go to https://example.com/node/17/edit.

I only want the template to appear on the front end, not when I go in to edit a node (I want that to remain the same basic page.html.twig that it usually is).

How can I fix this?

1
  • What are the template suggestions in the Twig debug output for one of these pages?
    – mona lisa
    May 24, 2023 at 20:48

1 Answer 1

4

An easy solution would be visit /admin/appearance and at the bottom, check off:

Use the administration theme when editing or creating content

1
  • Omg THANK YOU. Didn't even know that existed.
    – Brittany
    Jun 1, 2023 at 19:20

Your Answer

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

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