Date: 2010-11-29 08:01 am (UTC)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
From: [personal profile] foxfirefey
Easiest way to fix this probably is to override Transmogrified's Page::print() function in a theme layer:

function Page::print()
{
    """
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>""";
        $this->print_head();
        $this->print_stylesheets();
        $this->print_head_title();    
    println "</head>";
    $this->print_wrapper_start();
    $this->print_control_strip();
    """
            <div id="container">
            <div id="top"></div>
            <div id="header">
    """;
    """
                <a name="top">
    """;
    $this->print_global_title();
    """
                </a>
            </div>
    """;
    $this->print_module_section("one");
    """
            <div id="wrap">
            <div id="content">
    """;
    $this->print_body();
    """
            </div>
    """;
    $this->print_module_section("two");
    """
            </div><div style="clear:both;"></div>
        </div>
        <div id="footer">
    """;
    $this->print_module_section("three");
    """ <div class="top"><a href="#top">Top of Page</a></div>
        </div>
    """;
    $this->print_wrapper_end();
    """
    </html>
    """;
}


You can see the original function here, I only added two lines to it:

* One to add the <div id="top"></div> to make it use #top like the other layouts, above the #header div.
* One to add the <div class="top"><a href="#top">Top of Page</a></div> at the bottom of the footer, so you can style it how you like.

You can, of course, tweak with this--put the code in different places, etc.

Now, I realize you're probably going to need more information than just this, but I'll need to know where to start explaining-- Have you ever made a theme layer before and then used it in a style? If not, that is probably where to start!
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 13th, 2025 08:17 am
Powered by Dreamwidth Studios