I don't want the login block occupying most of the home page. I've gone to admin/structure/block and changed the user login region to -none-. Yet it still appears on the home page (when logged out). Have cleared caches. Also tried configuring the visibility and have the login appear on another page, but can't. Why is my login block so stubborn?
I'm using an omega subtheme. Couldn't find references to the login block in the code, but maybe I need to add something.

Comments

Jaypan’s picture

Maybe the home page is using a different theme (if so, you'll need to disable the block in that theme)
Maybe the home page is cached (if so, you'll need to clear the cache)
Maybe the theme is directly embedding it into the page (if so, you'll need to remove the code directly embedding it)
Maybe the block is inserted using AJAX (if so, you'll need to remove the code inserting it)

Some things to look at.

volca’s picture

Thanks for your quick reply. The theme was doing some embedding. I removed this line from the theme layout.inc file
regions[navigation] = Navigation
Problem solved.

bander2’s picture

I think you just removed the entire region.

- Brendan

volca’s picture

Yes, I did. The only thing that was in the region was the login block. Is there a better way to remove the login block without removing the navigation region? I tried to do it by setting the block to none at admin/structure/block, but that didn't work.

bander2’s picture

It just seems drastic and personally I worry when something that should be so simple is not working.

So, you set the block region to none and clicked "Save blocks". Was the region still set to none, or was it back to Navigation?

Are you sure you are editing the visibility for your subtheme and not for Omega?

- Brendan

volca’s picture

I put the line of code for the navigation region back in the layout.inc file and checked everything again in admin/structure/blocks.
All the blocks are responding correctly to the settings except user login. In admin/structure, the login block is disabled in all themes and the navigation region doesn't have any blocks assigned to it in any theme. However, when I view the page, the login block is visible, and inspect element tells me it's in the navigation region.

If i assign the login block to navigation, it appears in navigation. If I assign it to the the footer and then view the page, there are two login blocks (one in navigation, one in footer). If I disable the login block and view the page, somehow it is there in navigation.

bander2’s picture

OK, so it seems like the settings are getting saved properly. I think you should go through Jaypan's suggestions.

Then I would look at modules. If your front page is a Panel, then the block could be placed on the page manually. The Context module can override block placement. Those are just 2 possible candidates off the top of my head. Display Suite could be another. Start disabling modules one by one to see if a change occurs.

- Brendan

volca’s picture

Bit late responding here as I got carried away exploring D8 for a while but now back to D7, and back to this problem. Went through all suggestions, deleted blocks one by one, etc. Bander2, yes it was the context module, which I don’t remember installing, configuring or ever using... but it seems I had and that was the culprit. Many thanks for all suggestions and taking the time to help me.