I'm working on a Drupal 8 site where I have a custom module/block that fetches content from another server and injects it to a div. When a user clicks on a link (like read more) from the injected content, I need to serve the content (full html page) (that gets fetched from the server) without my template's header and footer.
My question is how can I serve a page without my template's header and footer?
Thanks you.
So basically, create a content type only used for this content. Set your block to only display in the content area of this type of page. And then add the page template with header/footer removed and clear the cache. – rachel Jun 25 '16 at 03:38