Add Layout in Footer
Permalink Browser Info Environment
Hi there,
Just purchased your theme and I know my clients are going to love their final site.
I'm just hoping to be able to have the ability to have the Add Layout in footer to give it 4 columns. I tried testing code it in the footer.php, but only succeeded at adding 4 horizontal sections to add blocks/stacks etc too.
Thank you in advance for all your help. I really enjoy working with all of your themes.
Just purchased your theme and I know my clients are going to love their final site.
I'm just hoping to be able to have the ability to have the Add Layout in footer to give it 4 columns. I tried testing code it in the footer.php, but only succeeded at adding 4 horizontal sections to add blocks/stacks etc too.
Thank you in advance for all your help. I really enjoy working with all of your themes.
Type: | Discussion |
---|---|
Status: | In Progress |
You can't add layouts in Global Areas (which is what the footer area is. You would need to edit the footer like you mentioned to include 4 separate global areas.
It shows in the Stacks, there is a Footer Column Four. Can I activate that? If so, I've tried to implement it and nothing shows up.
Thanks again.
Cheers
Thanks again.
Cheers
That must have been from another theme you have installed. Treviso only has one global footer area.
Hi, Chris. How difficult would it be to do that (edit the footer to provide four global areas)? I'm building two Treviso sites now and could really use that capability. Is it something I could suss out by looking at the Slate footer (I have a handful of Slate sites) and modifying the Treviso footer accordingly? Or is it the kind of thing that if I have to ask this kind of question I should probably leave it alone?
Thanks,
Andrew
Thanks,
Andrew
In the footer.php file replace this:
With this:
<div class="col-md-12"> <?php $a = new GlobalArea('Footer'); $a->display(); ?> </div><!-- #footer .col-md-12 ends -->
With this:
<div class="col-md-3"> <?php $a = new GlobalArea('Footer'); $a->display(); ?> </div><!-- #footer .col-md-3 ends --> <div class="col-md-3"> <?php $a = new GlobalArea('Footer Two'); $a->display(); ?> </div><!-- #footer .col-md-3 ends --> <div class="col-md-3"> <?php $a = new GlobalArea('Footer Three');
Viewing 15 lines of 24 lines. View entire code block.
Thanks very much, both for the excellent patch and for the very fast response time. Love it!
Thanks again,
Andrew
Thanks again,
Andrew
You're very welcome!