[personal profile] jewelfox posting in [community profile] style_system
  1. CSS: How do I get the main title / header on my journal to align with the white boxes that make up most of the layout? There's some kind of offset that I can't figure out how to control, even after looking at this, and it's there in both IE and Firefox.

  2. CSS: How do I make list items and the numbers / bullet points appear on the same line? Right now they're appearing on separate lines in the Fruit Salad theme for some reason. Heh, and this one. >_>

  3. S2: How do I turn that title / header into a link to my Recent Entries page?

  4. S2: How do I add a "Share to Tumblr" link to the usual "add memory" / "share this entry" / "track this" buttons?

Many thanks in advance, and for answering the other questions I keep pestering everyone with :)

Date: 2014-02-04 02:29 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Yes, I do; you can swipe my code for that (it's a mod of something [livejournal.com profile] carriep63 long ago helped me do on LJ):

function Page::print_global_title() {
        if ($.global_title) {
                """<h1 id="title">
<span><a href="YOUR DW'S URL HERE" title="YOUR HOVER TITLE TEXT HERE">YOUR JOURNAL NAME HERE</a></span></h1>""";
        }
}
function FriendsPage::print_global_title() {
        var string title = $.friends_title ? $.friends_title : $.global_title;
        """<h1 id="title">
<span><a href="YOUR READING PAGE'S URL HERE">$title</a></span></h1>""";
}

function Page::print_head_title() 
{
    if ($this isa FriendsPage) {
        print """<title>""" + $this->view_title() + $*text_default_separator + $.global_title + """</title>n""";
    }
    elseif ($this isa RecentPage) {
        print """<title>""" + $.global_title + $*text_default_separator + $.global_subtitle + """</title>n""";
    }
    else {
        print """<title>""" + $this->view_title() + $*text_default_separator + $.global_title + """</title>n""";
    }
}


You can see how I have my journal URL and title, Reading Page URL and my hover text set up here:

http://www.dreamwidth.org/customize/advanced/layersource?id=116552&fmt=html (I've set it to be viewable to everyone).

I'm not great with troubleshooting or changing the s2 so much, so if you run into any issues with it you might want to make a new top-level post for more help. Good luck. :)

(Also, as I'm sure you can probably tell by looking, and also to ed-ah-mah-cate anyone else reading, any URL in the above code can be changed to point to wherever, but you'll want to change any descriptive text and hover text as well so as not to confuse people about to click on those links).
Edited (more info/URL cleanup) Date: 2014-02-04 02:47 pm (UTC)

Date: 2014-02-04 04:18 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
You're welcome! :)

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 Jan. 9th, 2026 08:20 am
Powered by Dreamwidth Studios