I have a view page with url and machine id search

I need to add a custom page.html.twig for that specific view page so that it does not affect the rest pages.

How can I implement it?

I tried adding page--search.html.twig but it did not work.


page--[url of your view].html.twig

Put the file in drupal/themes/YourTheme/templates folder

Remember to flush/clear the cache to see the changes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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