How to remove footer and other empty blocks?

Permalink
Hi!
I am totally new to Concrete5, but I think I have hot the hang of it somewhat. But I can't seem to figure out how to delete blocks, and by that release the space it takes up.

Looking at the picture, you see a few empty blocks. The white ones are okay, since they obviously don't show against a white background. But the colored banner, used for footer content, really has to go. Please note that I use "Footer contact" and "Footer legal" under this one, so I can't just delete ALL of the footer sections.

I hope you understand what I mean. :-)

1 Attachment

 
hutman replied on at Permalink Reply
hutman
What you are trying to remove there are areas, not blocks.

I would suggest you check out the Cloneamental theme http://www.concrete5.org/marketplace/themes/cloneamental... which is just a copy of the default Elemental theme, but you can go into the theme files and adjust things as you want them without breaking upgrade functionality.
henricsson replied on at Permalink Reply
Sorry for the confusion of terms, and thank you so much for your help! I will check it out.
mnakalay replied on at Permalink Reply
mnakalay
Another option is Elemental Cloner (also free) which will clone Elemental and make standalone themes out of it.

The main advantage over Clonemental is that you won't lose modifications if the package gets updated.

Full disclosure, I developed that package.

You can find it here:http://www.concrete5.org/marketplace/addons/elemental-cloner...
henricsson replied on at Permalink Reply
Hi!
Thanks for your answer! I have cloned the theme, using your tool, but which file do I need to edit to get rid of the yellow/gray field on the homepage? I figured application/themes/element_clone (or whatever I named it)/elements/footer.php would be a good place to start, since it's labeled as a footer. But I can't find the correct place or string.

Any ideas?
mnakalay replied on at Permalink Reply
mnakalay
Actually you would have 2 ways to do it.

When an area is empty (no blocks in it) it doesn't show when visiting the site. In this case it shows only because of the color.

So you could either delete that area altogether which would not be the best way since you might want to use it later. Or make sure that color doesn't appear which is easier and still leaves the area fr you to use later.

In order to simply remove the color, you have to edit the file page_theme.php. Look for this piece of code
/**
     * @return array
     */
    public function getThemeAreaClasses()
    {
        return [
            'Page Footer' => ['area-content-accent'],
        ];
    }

This gives your footer area a specific class name which is responsible for that color. So just comment it out like this
/**
     * @return array
     */
/*
    public function getThemeAreaClasses()
    {
        return [
            'Page Footer' => ['area-content-accent'],
        ];
    }
*/

Notice I didn't say delete it (which you could) again so that you have it if you need it later.

If on the other hand you really want to get rid of the whole area, you have 3 files to modify.

Modify default.php, left_sidebar.php, and right_sidebar.php and delete this piece of code in each one
$a = new Area('Page Footer');
$a->enableGridContainer();
$a->display($c);