is there a way to remove the Main Page Content Block as being mandatory? I've been trying to build 3 columns out of several views and I'd like to do it with blocks for those views but the Main Page Content block always forces itself into the mix. Even when I tell it only to show for admin role it still shows up for anonymous viewers. I've used a page/panel to make the front page of the site for the time being but that obviously won't scale well for mobile devices. Anyway, is there anything I can tweak in the code to remove that mandatory requirement?

Thanks

Comments

krueschi’s picture

Hi,

the presence of the main content as a block is a "normal" drupal behaviour.
Even if IMHO not recommended, there is a way to remove this block programmatically using a MYTHEME_preprocess_page function in your template.php file.

I suggest creating / using a page view, probably as a responsive grid, and setting the path as frontpage (go to admin/config/system/site-information).

Panels is another way - as you went already; for mobile you may have to figure out a css solution that lets the panels flow each underneath the others.

zap-admin’s picture

Krueschi,
Thank you so much for the tip. I didn't know about that module, looks like that might do the trick. And yes I could tweak css as I've done with other themes in the past. Actually once I get the site in question more established I'll start working on my own custom theme for the first time for it. I've needed to finish teaching myself how to do that for eons now. Anyway, thank you so much for the tip.

Zap

krueschi’s picture

Status: Active » Closed (works as designed)