I have a whole tutorial that explains how to use CSS in a theme layer. If it was unclear, can you point to some places that I can maybe clarify? That's problem #1 I see with the code. #2 is: I don't know what layerinfo "type" = "RLIT"; means. Was this producing an error? #3 is FAQ #14: Why can't I use HTML embedding tags, JavaScript, or Flash on LiveJournal?
Hello av8mike, thanks for the reply. Firstly, I changed the sitemeter code to the non-java version. Secoond: your tutorial was very helpful and easy to understand. Thirdly: This is the error that I get when I hit 'save and compile'"
S2 Compiler Output at Tue Dec 4 04:49:05 2007 Error compiling layer:
OK... so, that compiler error is #1 in my "Troubleshooting" list from that tutorial: You're putting CSS directly into the theme layer, when it's expecting just S2 codes. Add it to the custom_css property like this:
set custom_css = """ .asset-content { font: 12px PMingLiU; }
That worked very well--sort of. I did not get any parsing errors, but another issue arose. After applying the theme then going to see the new changes in effect, what I saw as a complete different theme altogether. Below, the code after fixing it. Then follows two screenshots-the first is how the journal is supposed to look, the second screenshot is how it actually looks. What. In. The. Hell. Happened?! SOS techie dude, SOS!
Thank you so much for all your time and especially your patience. This last time around it worked beautifully and I'm extremely happy with the end result. THANKS!!!
Comments 9
layerinfo "type" = "RLIT";
means. Was this producing an error?
#3 is FAQ #14: Why can't I use HTML embedding tags, JavaScript, or Flash on LiveJournal?
Reply
Firstly, I changed the sitemeter code to the non-java version.
Secoond: your tutorial was very helpful and easy to understand.
Thirdly: This is the error that I get when I hit 'save and compile'"
S2 Compiler Output at Tue Dec 4 04:49:05 2007
Error compiling layer:
Compile error: line 54, column 1: Unknown token encountered while parsing layer: [TokenPunct] = .
S2::Layer, S2/Layer.pm, 67
S2::Compiler, S2/Compiler.pm, 27
Context
50: """;
51: close_module();
52: }
53:
54: .asset-content {
55: font-size: 12px PMingLiU;
56: }
57:
58:
Fourth: I did remember to do the viewable thing. The code in this entry is now reflects the changes (sitemeter code, layer info correction, etc.)
Reply
set custom_css = """
.asset-content {
font: 12px PMingLiU;
}
#container-inner {
border-left: 2px solid #000;
border-right: 2px solid #000;
}
etc...Make sense?
Reply
After applying the theme then going to see the new changes in effect, what I saw as a complete different theme altogether. Below, the code after fixing it. Then follows two screenshots-the first is how the journal is supposed to look, the second screenshot is how it actually looks.
What. In. The. Hell. Happened?! SOS techie dude, SOS!
Reply
layerinfo "type" = "theme ( ... )
Reply
This last time around it worked beautifully and I'm extremely happy with the end result.
THANKS!!!
Reply
Reply
Leave a comment