Score:0

Main page content block doesn't move

il flag

I'm currently building a Drupal 9 site. I've built some custom blocks, which I display on a specific 'basic page'. I want the 'Main Page Content' block to be above my custom blocks. So I moved the 'Main Page Content' block upwards. For some reason it didn't update, and my custom blocks are still on top.

Does anyone know why?

cn flag
First, always clear the cache. Next: Where are the custom blocks still on top? In the layout builder UI? Or are they on bottom in layout builder but on top in the actual page?
Jorn Reed avatar
il flag
@PatrickKenny I already clear cache with every change. In the layout builder the main page content is on top. And on the actual page the custom content is on top.
cn flag
What does the page source look like? Check for the layout builder classes in the raw HTML, and consider updating your question here to show the actual markup that Drupal is outputting.
Jorn Reed avatar
il flag
@PatrickKenny I managed to fix it. I only had main page content shown on a couple of specific pages. Added the needed page to it, and it directly got placed on the right direction. Altough that page wasn't in the list of pages before, I'm guessing that whenever 'Main page content' is enabled, that it automatically gets placed under all other blocks
cn flag
If you solved the issue, please answer your own question instead of posting it in a comment. That way you can later mark the question solved, so it won't show up as unanswered in the search results.
Score:0
il flag

I managed to fix the issue. I only had main page content shown on a couple of specific pages. Added the needed page to it, and it directly got placed on the right direction. Although that page wasn't in the list of pages before, I'm guessing that whenever 'Main page content' is enabled, that it automatically gets placed under all other blocks

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.