[personal profile] nightowl posting in [community profile] style_system
Hi all,

Does anyone know how to get the Transmogrified theme to display the journal subtitle? I've been looking and looking for CSS that would do this, since I figured it'd be relatively simple, but apparently not? I would appreciate any help that is offered. Thanks so much!

Date: 2009-07-24 07:32 pm (UTC)
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (myword)
From: [personal profile] foxfirefey
Oh wow, everybody is fast. The theme layer should be a bit like this:

layerinfo "type" = "theme";
layerinfo "name" = "Transmogrified Subtitled";

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="header">
    """;
    """
                <a name="top">
    """;
    $this->print_global_title();
    $this->print_global_subtitle();
    """
                </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>
    """;
    $this->print_wrapper_end();
    """
    </html>
    """;
}


Or is it better in a user layer?
Edited Date: 2009-07-24 07:33 pm (UTC)

Date: 2009-07-24 07:43 pm (UTC)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)
From: [personal profile] foxfirefey
I think [personal profile] branchandroot has the instructions about creating new layers. You can use mine as a complete copy paste, and then come back when it's created and I'll see if I can't give instructions on hooking it up to your current theme.

Date: 2009-07-24 08:58 pm (UTC)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)
From: [personal profile] foxfirefey
If you already have a custom theme, you can just add the function in the one I gave to your current one!

Date: 2009-07-24 07:39 pm (UTC)
branchandroot: oak against sky (Default)
From: [personal profile] branchandroot
You know, that's a good question. I've always used a theme layer for it; I don't know whether a user layer will let you change this stuff!

Date: 2009-07-24 07:42 pm (UTC)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)
From: [personal profile] foxfirefey
I have no clue myself--I think it might not, but I haven't tried yet. I *think* theme layer is the proper place.

Date: 2009-07-24 07:45 pm (UTC)
adalger: Earthrise as seen from the moon, captured on camera by the crew of Apollo 16 (Default)
From: [personal profile] adalger
I'm fairly sure theme is the right place. As I recall (though I can't find documentation at the moment), you simply can't put functions into a User layer.

Date: 2009-07-24 10:03 pm (UTC)
snakeling: Statue of the Minoan Snake Goddess (Default)
From: [personal profile] snakeling
You can definitely put functions in a user layer, but it's a bad idea, as it would get rewritten the next time you use the wizard to modify something.

Date: 2009-07-24 10:02 pm (UTC)
snakeling: Statue of the Minoan Snake Goddess (Default)
From: [personal profile] snakeling
It's always better to put it in a theme layer, because the next time you modify something using the wizard, the user layer is rewritten, losing all your modifications :)

Date: 2009-07-24 10:03 pm (UTC)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)
From: [personal profile] foxfirefey
Is there a good guide to this stuff? I really should get caught up, since I'm doing some styles work.

Date: 2009-07-24 10:17 pm (UTC)
snakeling: Statue of the Minoan Snake Goddess (Default)
From: [personal profile] snakeling
Nothing official, alas. The S2 documentation is pathetic right now, though I know it's one of the goals of the Dreamwidth style team. That said, [livejournal.com profile] kentucka has done some great basic tutorials.

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 6th, 2025 02:36 am
Powered by Dreamwidth Studios