Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

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 · 915 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 Sebadamus, 6 days ago
5 148 13 hours ago
Themes & Styling · by martynfoster735, 1 week ago
1 192 1 week ago
Themes & Styling · by Justin Young, 3 weeks ago
1 241 3 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 375 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 744 3 months ago