1

I have a Static Page node at, say, /my-page. It has a title and body. I have also placed a block (pointing to a View) in the "Main content" region, at the very bottom of the list.

However, when viewing /my-page, the block is displayed above the <article> element that contains the page content. An example can be seen below.

Article element rendered at the very bottom of the region

Why is this the case? What can I do to always show the page content above everything else that is placed in the same region?

  • monty is the name of the theme, and the overridden block.html.twig and node.html.twig files do not change the order of anything. – TerranRich Aug 13 '18 at 17:34
  • Did you inspect the weights of the blocks on the block admin page? – Kevin Aug 13 '18 at 17:42
4

You need to adjust the display order of the blocks through configuration. Navigate to Manage >> Structure >> Block layout (relative path: /admin/structure/block), click the handle icon next to the "Main page content" block and use it to drag the block to the top of the "Content" region.

  • 1
    It's so weird that the main page content still renders regardless of whether this block is placed, so I missed it entirely. I had no idea such a block existed. – TerranRich Aug 14 '18 at 15:40
  • 2
    Yes, there's a fallback system in place because your side would basically be dead if that would no longer display – Berdir Aug 14 '18 at 21:30

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.