Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Howto create extended footer with 3 partial blocks?

first-time

Solved by Sjoerd Smeets View solution

Started by Sjoerd Smeets 8 years ago · 2 replies · 1051 views
8 years ago

Hello, i'm new to Grav but it looks like a nice CMS for small projects where WordPress is to bloated for. Im familiar with WP howto create widget areas for the Footer for example.

For Grav i couldn't find information howto do this. I'm using a copy of the Quark theme created with devtools. I think that i need to extend the footer with 3 partial blocks, but i'm looking for some reference. Do you know a theme which has this so i can look at it? Or point me to info for doing this? I've used search but couldn't find anything (yet)..

Thanks!

👍 1
8 years ago

@SjoerdSmeets The Quark theme comes with the template 'templates/partials/sidebar.html.twig' which shows a list of plugins which are enabled. You might call that a kind of 'widget area'..

8 years ago Solution

Got it fixed, didn't use sidebar, but extended base.html.twig

HTML

    <section id="footer" class="section bg-gray">
        <section class="container {{ grid_size }}">
            <div class="columns">
                <div class="col-4 col-sm-12 col-md-4">
                Column 1
                </div>
                <div class="col-4 col-sm-12 col-md-4">
                Column 2
                </div>
                <div class="col-4 col-sm-12 col-md-4">
                Column 3
                 </div>
            </div>
        </section>
    </section>```
👍 1

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 4 weeks ago
4 474 2 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 802 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 662 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 682 2 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 642 3 months ago