Hi! I'm meludame, I usuablly dabble in styles-related bug and this is the bug write-up I did for my latest.
Some of the older DW styles do not print the page subtitle even though the option is there on the customize style page. Styles that are concerned are the following:
- Brittle, Negatives (doesn't print the title either)
- Skittlish Dreams, Sunday Morning, Transmogrified
Edit the layouts concerned to add in the missing feature. Edit the relevant portion of the CSS to make the change as unobtrusive as possible for the user of said styles.
- For each layout, styles/$layoutname/layer.s2 (in either dw-free or dw-nonfree).
( Bug Diary )
I would like to thank the members of #dreamwidth and in particular (but non-exhaustively) sophie, kaberett, geekosaur, momijizukamori and ninetyd for their coaching, cheering and reassurances as I worked my way through this bug. Y'all are amazing :)
Note: Another copy of this entry lives in my journal.
Adding a theme layer to an existing style
To add a theme layer to an existing style, you need to edit two files:
cgi-bin/LJ/S2Theme/$layoutname.pm (or $layoutname_local.pm)
( in detail )
Adding an entirely new style from a theme layer
This entry is purely about generating patches from a layer which is already s2-ified, so I won't cover the conversion from a stylesheet to a theme layer. If you need it, see the tutorial for S2 property conversion, which is thoroughly amazing. :)
Hopefully you won't need to do that yourself (the task is time-consuming, but not very complicated,so it's perfect for when you have plenty of time on your hands, but not much brainpower to spare). Let's just move on past it; I'll assume that either the theme came ready-converted, or that you did the conversion on your own.
So, you'll basically end up editing five files:
( in detail )
Other things: images for layouts go under: htdocs/stc/$layoutname/imagename.png, etc. (under stc so that we can access them as relative urls from stylesheets, though in practice, we've been setting them as absolute URLs in properties by using variables, etc)
And uhh. I guess that's it!
Edit: 10/01: fixed a few errors, clarified a few instructions, courtesy of zvi