?

Log in

No account? Create an account

Previous Entry | Next Entry

Footer Html

  • Apr. 3rd, 2008 at 6:43 PM
I figured out how to add an image to my layout, but I can't figure out how to add basic text or html. I'm interested in starting a webring and I would put my "Next site, list, random" links in the footer.

Thanks!

Here's my layer: http://www.livejournal.com/customize/advanced/layersource.bml?id=10767355

Comments

( 5 comments — Leave a comment )
av8rmike
Apr. 5th, 2008 08:43 pm (UTC)
I may be mistaken here, but it looks to me like the only way to add actual additional content to the footer <div> would be through the theme layer. In this case, you'll need to modify the Page::print() function to add your links.

An example may help. This is the last few lines of the function, and I've added and highlighted one:
    container_open("footer");
    if (viewer_sees_hbox_bottom()) {
        container_open("ad-5linkunit");
        $this->print_hbox_bottom();
        container_close();
    }
    """ WEBRING LINKS HERE """;
    """</div></div>
</div></div>
\n""";


Edited at 2008-04-05 08:46 pm (UTC)
stickykeys633
Apr. 5th, 2008 08:46 pm (UTC)
Mike, you know me! You know I barely know what that means much less how to do it :D

Umm, so do I modify it just like adding a header to but to the bottom? print footer? Just a nudge would be nice, I think if I knew how to start I could figure out the rest.
av8rmike
Apr. 5th, 2008 09:57 pm (UTC)
::nudges::

Copy & paste the Page::print() function from the layout into your theme layer, then find the section at the end that looks like the part I excerpted. Add in whatever HTML you want for your webring (or whatever) between triple quotes like I showed.
stickykeys633
Apr. 5th, 2008 10:56 pm (UTC)
SUCCESS! Thanks!
stickykeys633
Apr. 5th, 2008 10:01 pm (UTC)
Hmm, it's not reading anything in the trouble quotes. Saying Unexpected token found. What exactly are the div statements closing. I just put this in the custom_css, should I try to incorporate it in a print: statement?

I'll play some more with it. Thanks Mike!
( 5 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars