?

Log in

No account? Create an account

Previous Entry | Next Entry

Hi there!

As you can see by the subject line, I'd like to know how to put the CSS into the theme layer, rather than as an external stylesheet (when customising, LJ only re-loads these every five minutes or so, which is a pain) or in the Custom CSS box, where it's frustrating to have to scroll down that tiny box. In other styles, there's a kind of print_custom_head, but all I saw in the Expressive Layer Source was a print_custom_stylesheet, and as I'm much better with CSS than with any kind of programming (brackets and parenthesis and strings, oh my!), I'd appreciate some advice on where to put my CSS, and what sort of escape quotes/slashes I need to use.

Also, how can I get rid of the entire poster information? I'm using this theme for my graphics community not_quite_art, but as all the posts are by me, I don't want to have my icon and username cluttering up the post.

Thanks!

Comments

( 7 comments — Leave a comment )
av8rmike
Jun. 29th, 2007 12:54 pm (UTC)
Overriding the stylesheet-printing functions isn't necessary with Expressive. There's a tutorial post that explains how to use CSS in theme layers here.
For your second question:
.user-icon {display: none;}
alexandramuses
Jun. 29th, 2007 01:34 pm (UTC)
Yeah, I just saw the tutorial... Could someone tag it with "css" as well as its current tags? That's how I searched, so I didn't see it initially. Oops!

However, I don't quite understand the theme-layer/user-layer override. Does that mean that if I put my custom CSS into the theme layer and then change *anything* in the user layer, it'll override my theme layer, or can I change other things as long as I don't type into the CSS box?

As for .usericon {display: none;}, I have that already, and it only removes the user icon, not the poster name. You can see my problem here.
av8rmike
Jun. 29th, 2007 02:45 pm (UTC)
I can re-tag that post. It didn't see appropriate when I first wrote it, but I can see the point.

Regarding the layer interaction, the second thing you said is the correct one. You can define whatever properties you want in the theme layer, but if you change those same properties in the wizard, it will record those changes in the user layer, which will take precedence over the theme layer. That also goes for Custom CSS, which is just a property.

Are you using a customized Page::print_entry() function? There was a fix made to the layout last week that fixed the problem of user-icon display, but if you're using an outdated version of the code, you wouldn't have gotten the fix.
alexandramuses
Jun. 29th, 2007 03:10 pm (UTC)
No, I haven't altered the print_entry. The only modification I have in my theme layer is the multi-level tags and a set_base_theme to "none".
av8rmike
Jun. 29th, 2007 03:18 pm (UTC)
Ah, never mind, I figured out what it is. Change all the "Display Userpic" setting to Yes, but include the CSS line I gave you above. (You need to actually print the .user-icon <DIV> before you can turn it off with the CSS.)
alexandramuses
Jun. 30th, 2007 01:12 pm (UTC)
Ooh, thanks, that took care of it!

So, just to confirm, I can adjust things like number of entries shown, the text used, and sidebar options, and it won't override CSS set in the theme layer?
av8rmike
Jun. 30th, 2007 01:38 pm (UTC)
I did a little experimentation the other day, and it looks like the wizard is smart enough to write in the User layer only those things that are different from the Theme layer. None of those changes you mentioned are related to CSS anyway.
( 7 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