Theming the Footer
  • LykaonLykaon
    Posts: 101
    I might be missing something somewhere, but is there a way to theme the footer? Right now, it says "powered by Vanilla" which is fine except it's about 8 carriage returns down and not very pretty.

    I made a theme of my own and I was able to change around some stuff by looking at other themes and how they did the "views" stuff but nothing about the footer.

    thanks!

    EDIT: To be clear, I'm trying to take control of the footer to add things (not just cssify the existing one).
  • LincolnLincoln
    Posts: 2,016
    The footer is technically part of default.master.php:

    <div id="Foot">
    <?php
    this->RenderAsset('Foot');
    ?>
    </div>

    So you could do this 1 of 2 ways: either add your code to the #Foot div, or use a plugin to add things to the Foot asset which then gets rendered on the fly as the page loads. I recommend the latter for flexibility if you want to learn how to do even cooler stuff; the former for expedience if you just wanna get this done and move on.

    To do it as a plugin, you'll want a method like this in your hooks file:

    public function Base_Render_Before(&$Sender) {
    $Sender->AddAsset('Foot', 'Function call or text to add');
    }

    Search the source code for "AddAsset" to see some examples of its use and the notes on how to use it.

    Vanilla developer [GitHub, Twitter]

  • LykaonLykaon
    Posts: 101
    @Lincoln: Thanks! I'll give that a try. I'll probably start with suggestion #1 and eventually ge to #2 when I'm feeling adventurous.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Who's Online 7

AltazarIdanJayAndSilentRobcandymanpulkitsahotataranxvik