![]() |
|
![]() |
|||||||||||
![]() |
![]() |
||||||||||||
While overrides are quick and easy ways to override certain aspects of your journal's style, it's important to note that you can only have one override for each variable (such as GLOBAL_HEAD), so if you have more than one thing you want to do, it's necessary to merge the two, or more, together into one override. As an example, say you have a background override in place and want to also change the font of your journal. The example code for both separately is below. GLOBAL_HEAD<= <style type="text/css"> <!-- body { background-image: url("http://www.yourimagehost.com/user/background.gif") !important; background-attachment: fixed !important; } --> </style> <=GLOBAL_HEAD GLOBAL_HEAD<= <style type="text/css"> <!-- body, td, font, div, p { font-family: "Century Gothic", "Arial", "Helvetica", sans-serif; } --> </style> <=GLOBAL_HEAD Since you're only allowed one GLOBAL_HEAD override, you will need to combine them for both effects to work properly. Correctly combined, the resulting code would be as follows: GLOBAL_HEAD<= <style type="text/css"> <!-- body { background-image: url("http://www.yourimagehost.com/user/background.gif") !important; background-attachment: fixed !important; } body, td, font, div, p { font-family: "Century Gothic", "Arial", "Helvetica", sans-serif; } --> </style> <=GLOBAL_HEAD Note that it basically consisted of removing the end of one override and the beginning of the next, i.e. this portion of code: --> </style> <=GLOBAL_HEAD GLOBAL_HEAD<= <style type="text/css"> <!-- You should be careful which overrides you use, though, as some are style specific, so if you are using a different style for one of your views, you may need to put the overrides in LASTN_HEAD, DAY_HEAD, FRIENDS_HEAD and CALENDAR_HEAD overrides rather than GLOBAL_HEAD. Also, if you have a GLOBAL_HEAD override which does not require a style tag (such as a title override), you would simply place it after the closing style tag, like so: GLOBAL_HEAD<= <style type="text/css"> <!-- body { background-image: url("http://www.yourimagehost.com/user/background.gif") !important; background-attachment: fixed !important; } body, td, font, div, p { font-family: "Century Gothic", "Arial", "Helvetica", sans-serif; } --> </style> <title>NEW TITLE HERE</title> <=GLOBAL_HEAD It's also important to be sure you handle the comment markers (<!-- and -->) correctly. Starting one and not closing it will render the page unreadable in most browsers.
|
| © 2002-2008. Blurty Journal. All rights reserved. |