Nilesta (nilesta) wrote in lj_userdoc,
Nilesta
nilesta
lj_userdoc

Stop me Before I write Again.

Yet another FAQ suggestion, what goes along with the one I wrote before. Comments welcome. Especially if you know of one I missed.

Update:
I've added another section, multi-line versus one line overrides, and put in some actual CSS is my closing stuff for CSS.

My Overrides are Messed up! How do I fix them?

There are a few reason your overrides might be messed up, below is a listing of some of the most common.
Malformed Comment Tags or Style Tags
Note that when you are inserting CSS into your GLOBAL_HEAD, you should always surround it with style tags, and comment tags. This will make it so that newer browsers recognize it, and older ones ignore it. Check your comment tags and style tags. They should look like this:
<style type="text/css">
<!--
(All CSS goes here)
-->
</style>
If your tags do not look like that, change them.
Not Closing CSS Definitions
When you are using CSS in your GLOBAL_HEAD, they generally go in a certain style, and need to be that way to work. Check your CSS definitions, they should appear in one of two ways, either like this:
body {font-face: "Arial", sans-serif; font-size: 12pt; color:red}
Or like this:
body {font-face: "Arial", sans-serif;
font-size: 12pt;
color:red}
Regardless of which way yours look, or what the CSS actually is, make sure they all open with a curly bracket, close with a curly bracket, and have semi colons (;) between each definition.
Not Merging GLOBAL_HEAD Overrides
The LJ servers will only recognize one GLOBAL_HEAD, if you have more than one, one of them will be ignored. You need to make sure that you have all CSS in one GLOBAL_HEAD. To find out how to merge your GLOBAL_HEADs, read this post.
Overrides Inside Other Overrides
You can not nest overrides. What this means is, you can not have the override for your comments links inside the GLOBAL_HEAD override, it won't work. Always close your overrides before you type in the next override. You would be amazed the havoc that one missing closing tag can cause. Check your overrides, if you see one override begining before the one above it closes, that is your problem.
Using the Wrong Override Marker
Note that when you use an override, you must format it properly, depending on if you are using one line for the override, or more than one line. For example, this override:
LASTN_OPT_ITEMS=> 20
Can use the marker '=>', because it is entirely on one line. If your override has any line breaks at all, you must use the multi line marker, like this:
GLOBAL_HEAD<=
<style type="text/css">
<!--
body {font-size: 12pt}
-->
</style>
<=GLOBAL_HEAD
Note the '<=' marker at the begining and again at the end, multi-line overrides must use those markers.

If you have checked all of this, and are still having problems, feel free to ask someone for help in Support.

Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments