0

I have a page generated with custom controller. It's special page, so i need to remove all sidebars, headers and logo, for that page, and use custom design/layout.

How can i replace 'page' twig template for that url/controller?

1 Answer 1

1

Just create new twig template in the template folder of your theme page--your-url.html.twig and clear the cache.

2
  • Thanks, found it at page suggestions. Don't know how did i miss it there =) Spent 2 hours looking for some page_alter...
    – Vovka
    Dec 6, 2016 at 13:05
  • @Vovka If you enable Twig debug, template suggestions will be in the HTML output as comments.
    – mpdonadio
    Dec 6, 2016 at 17:54

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.