Nilesta (nilesta) wrote in lj_userdoc,
Nilesta
nilesta
lj_userdoc

Re-submitting

Since I think we've decided that S2 is kinda nice, but .. shall we say late, in coming. I am here-by re-submitting an FAQ. Help, I've screwed up my overrides, they're borked, fix them. Ahah.

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

  • FAQ232

    There is a typo (or two) in FAQ232. I'm talking about the following sentence: Ddd them to your Friends list them with the Add Friend button at…

  • New FAQ: How do I deal with spam?

    This FAQ is meant to tie together all of our spam-related information, currently spread over several different categories. Ideally, I'd like to have…

  • Identity Account FAQs

    As LiveJournal Support regularly uses the term identity accounts both in answers to users and amongst themselves, and some system pages refer to…

  • 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 

  • 13 comments

  • FAQ232

    There is a typo (or two) in FAQ232. I'm talking about the following sentence: Ddd them to your Friends list them with the Add Friend button at…

  • New FAQ: How do I deal with spam?

    This FAQ is meant to tie together all of our spam-related information, currently spread over several different categories. Ideally, I'd like to have…

  • Identity Account FAQs

    As LiveJournal Support regularly uses the term identity accounts both in answers to users and amongst themselves, and some system pages refer to…