Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some blocks are no longer showing under Block Layout (or under custom blocks). Some of the blocks came from views. And the views are still there and in block mode. Another block was of the type "Contact Block".

why does my views-block not appear? And why did the contact block disappear?

All I did was change the default theme to a standard theme. Then I uninstalled the previous theme and removed all its files. Then I put in a new theme and activated it and set it as default.

share|improve this question
    
Seems you didn't configure the block region for the current theme? – Krishna Mohan 5 hours ago
    
I believe I did. But either way, the block views block should be listed under "Disabled" right? – fireante 5 hours ago
    
You have to place the block separately for each themes. So Just place the block again in the necessary regions. it would solve the problem mostly :) – Leopathu 5 hours ago
    
The weird thing is that I had set up a copy of the site elsewhere and created a new theme there. That time when I activated the new theme the blocks had just moved down to the "Disabled" section and I could just place them again, without having to reconfigure them. This time that didn't worked and I don't know what I did differently. Anyways, it's solved, thanks everyone! – fireante 4 hours ago
up vote 1 down vote accepted

Just click Place block and in the filter up top, search for them and place them again.

share|improve this answer
    
Ok, perfect, thanks! I didn't realize there's another way to get blocks. It did require me to configure each block to the previous settings, but it worked. – fireante 4 hours ago

Seems like the block placement is in context of theme. If you see the exported block configuration file, you will see theme as dependency which kind of ensures the block configuration will work in context of theme it was configured in.

As a solution yes you have to configure the block for each theme separately.

share|improve this answer

You need to check Demonstrate block regions of both the theme.

enter image description here

Some regions may exist on first and not present in second theme. You need to reconfigure that blocks.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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