Sunday, October 7, 2007

Hacking template "No. 897"

"By default, Blogger offers over 30 gorgeous, professionally-designed templates."

Gorgeousness is kinda in the eye of the beholder, though. For example, template "No. 897" creeps me out in some ways. At first I thought it was just the colors, but the star and the secret messages are the biggest problems, I think. Fortunately, they can be eliminated.

"If you're the sort of person who really likes working directly with the code, though, that's fine, too."

"Really like" is too strong. But I'll do it in self-defense. Or to help someone out. Like Carolyn, human mom to Claire, Maddox, Scotty, and Shelby. She wants to get rid of the star at the top of No. 897, too.

So let's do that, plus get rid of the creepy secret messages, plus fix the capitalization at the top. That's pretty low, when a "professionally-designed template" messes with your capitalization!

These are all simple changes, but they require messing with the HTML code for your page. As always, backing up at least what you're starting with is strongly recommended. Remember, you're hacking the work of a gorgeous professional!

Just to be sure that we're on the same page, literally, you get there from the home/dashboard page by clicking on Layout | Edit HTML.

A Star is ... Removed

To do the star project yourself, you need to be able to download a graphics file to your computer; do one bit of very simple, quick editing with a graphics editor that can handle GIF files and preserve transparency; and upload the result to an online internet storage place of your own.

Then you do a quick copy-and-paste text edit to the blog html.

There are ways around the first three requirements if you don't have an editor or your own storage space ... click the link in the sidebar to email me ===>

To get rid of the star, you want to change line 168 (by my count). Let's have a look at the html. Unfortunately, when you copy computer stuff to a blog and use the html tag "<code>," the indentation gets lost. But anyway, here's the context we're looking for:

/* Header
----------------------------------------------- */
#header-wrapper {
background: #fff;
padding-bottom: 4px;
}

#header .titlewrapper {
background:#269 url("http://www.blogblog.com/no897/topleft.gif") no-repeat left bottom;
padding:0 0 0 160px;
margin:0 0 10px;
color:#fff;
width:100%;
width/* */:/**/auto;
width:auto;
}


The line we want is this one:

background:#269 url("http://www.blogblog.com/no897/topleft.gif") no-repeat left bottom;

And the offending graphic that we want to replace is http://www.blogblog.com/no897/topleft.gif  Download this file to your computer, and fire up your graphics editor.

Set a paintbrush to that orange color. The easiest way is to use an eyedropper tool (color picker, whatever) and pick somewhere in the orange. Or you can set the paintbrush to:
  • red 255, green 153, blue 0   -or-
  • red 100%, green 60%, blue 0%   -or-
  • hex xff9900
Now just paint out the star.

Next, upload that modified file to your internet storage space that's online all the time (because people will be looking at it 24 hours a day!).

Plug the internet address of that file in place of the Blogger's "...topleft.gif" in your blog's html, and you're done!

The line should end up looking something like this:

background:#269 url("http://www.myfilespace.com/myfilename.gif") no-repeat left bottom;

No More Secrets

There's secret writing in the green box below the orange box that has the star. It's not exactly The Da Vinci Code - it just says "897." I guess it's in case you forget the name of the template you're using. Or in case your readers want to know.

I don't think most do. So there's even more secret code in the html - instructions on how to get rid of the 897 - that's even more secret because YOU can see it and readers can't! (And neither can Blogger's computer!)

About seven "paragraphs" past the section we worked on above is the following:

#header .description span {
/* To remove the word next to the description, delete the following background property */
background:url("http://www.blogblog.com/no897/temp_no.gif") no-repeat left center;
/* Keep everything below */
display:block;
padding:0 0 0 160px;
text-transform:uppercase;
letter-spacing:.1em;
min-height:12px;
}


The secret instructions are there in a comment. Comments are things for people to read but computers to ignore.

/* Comments are inside a matched set of asterisks, inside a matched set of slashes, like this. */

So the comment says you can get rid of that secret 897 by deleting the line

background:url("http://www.blogblog.com/no897/temp_no.gif") no-repeat left center;

But why delete it when you may want to put it back in? To mystify readers, for example. Why not just "comment it out" by putting the line inside comment markers, like this:

/* background:url("http://www.blogblog.com/no897/temp_no.gif") no-repeat left center; */

Done! "897" is gone!

Now let's get rid of the wacky writing in the dark blue strip across the top. Go back to the first section of code we worked on for the block of orange color. In the very next "paragraph" is this:

#header h1 {
background:url("http://www.blogblog.com/no897/bg_header.gif") no-repeat left top;
margin:0;
padding:70px 0 30px;
line-height: 97px;
font: $titleFont;
text-transform:lowercase;
}


The strange hieroglyphics in the background go away if you comment out the line that specifies the background graphic like this:

/* background:url("http://www.blogblog.com/no897/bg_header.gif") no-repeat left top; */

No more artsy half-numbers and gobbledygook.

Raise the Capital(s)!

How weird, to make all your capital letters lower-case without even asking! Just weird. Well, while we're in this "paragraph," let's just comment out another line:

/* text-transform:lowercase; */

Shazaam!

I hope that these notes helped or amused you. Or, if your blog blew up, I hope you saved a backup. "There's many a slip 'twixt the cup and the lip," but "All's swell that ends swell."

And it's more important to have fun than to be earnest. Well ... it's more fun to have fun than to be earnest...!

11 comments:

Anonymous said...

Great explaination!

I have a problem that has been bugging me for a while, hope to hear suggestion or tips from you.

I am trying to remove the ugly gap between the horizontal bar (green and light blue portion), so that next time I substitute it with a horizontal bar, I want the gap to be small. I tried to change some variables, but failed to tweaked it. Any idea?

Thanks,
Victor

Anonymous said...

Thank you very much. Caps and 897 were making me crazy. I'm a luddite for coding but your instructions were enormously helpful and easy to follow.

http://redbeardmarketing.blogspot.com/

Barbara said...

This really got me going on modifying the templates...Thanks a Bunch...

Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

Anonymous said...

ed--mr-ed.blogspot.com is very informative. The article is very professionally written. I enjoy reading ed--mr-ed.blogspot.com every day.
quick loan
online payday loan

Anonymous said...

Good Morning!!! ed--mr-ed.blogspot.com is one of the most outstanding innovative websites of its kind. I take advantage of reading it every day. I will be back.

Anonymous said...

25mg aldactone Get advair diskus Visa/Mastercard/Amex/eCheck azulfidine Drug female viagra Sale ovral 25mg apcalis sx oral jelly orange flavor

Anonymous said...

Yes indeed, in some moments I can say that I agree with you, but you may be considering other options.
to the article there is even now a suspect as you did in the decrease issue of this solicitation www.google.com/ie?as_q=texture paint helper ?
I noticed the phrase you have not used. Or you functioning the dreary methods of development of the resource. I suffer with a week and do necheg

Anonymous said...

A wide good physical condition program tailored to an solitary wishes very likely focus on one or more specific skills, and on age-[3] or health-related needs such as bone health.[4] Tons sources[citation needed] also cite mental, sexual and heated fettle as an superior purposes of total fitness. This is regularly presented in textbooks as a triangle made up of three points, which impersonate true, poignant, and mental fitness. Physical good shape can also hamper or investigate multifarious persistent salubrity conditions brought on by unhealthy lifestyle or aging.[5] Working discernible can also serve people forty winks better. To delay healthy it is mighty to combat in physical activity.
Training

Unique to or task-oriented [url=http://www.pella.pl]fitness[/url] is a actually's ability to depict in a determined vigour with a sober know-how: as case, sports or military service. Individual to training prepares athletes to perform fully in their sports.

Examples are:

400 m sprint: in a sprint the athlete necessity be trained to master-work anaerobically from one end to the other the race.
Marathon: in this wrapper the athlete ought to be trained to production aerobically and their perseverance must be built-up to a maximum.
Scads run a risk fighters and constabulary officers bear unvarying tone testing to draw if they are masterly of the physically exacting tasks required of the job.
Members of the Joint States Army and Army Governmental Guard must be proficient to pass the Army Tangible Competence Try out (APFT).

Anonymous said...

[url=http://sexrolikov.net.ua/tags/Asses/]Asses[/url] Online porno : [url=http://sexrolikov.net.ua/tags/mobstar/]mobstar[/url] , это все Вы можете смотреть онлайн

Anonymous said...

Закупим под склад комплектующие с хранения

ICQ 177-211-010
tel:+38.095.856.14.68
Людмила

2РТТ32Б8Г14В
2РМТ33КПЭ32ШnВ(А)1(ЛБ)В
PJ074 (2.50mm center pin) Есть
2РТТ20КПЭ3Ш5В
Разъем пит. штыревой 2,5x5,5 мм (п) на пр.блок (2828)
СШР60П50ЭШn
1-414G, Разъем mini DIN 4 pin (S-VHS) "шт" металл "позол." на кабель
ОНп-ВС-40-14-В53
СНЦ23-4/14В1В группа Разъемы ---810636
РРС5-7-А-0-2-В
Соединитель GST18I3K1-S 15 40SW -92.232.4004.1 Запрос WE
2РМТ42КУЭ50ШnВ(А)1(ЛБ)В
Разъем питания PJ-X11
Разъем питания 14 конт. (п) шаг 2,54 на плату пр.угол (WF-14R)
РБН2-14-18(26,34)Ш2В
2рм24б19ш1в1в ОС группа Разъемы ---818523
Соединитель RST20i5 96.452.4003.1 -96.452.4003.1 Запрос WE
Разъем питания 4 конт. (п) шаг 2,54 на плату пр.угол (WF-4R)
2РТТ48КПЭ7Ш25В
2РТТ36Б15Г20В
СР75-166ФВ группа Разъемы ---817153
СНЦ13-18/50П-2-а(б,в,г,д,е)(У)В
ШР48П26ЭШ2 вилка приб.б/кож. ГЕО.364.107ТУ 5" СССР"
СНЦ28-45/36В-1(а,б,в,г)В
Разъем PBD-30 (гнездо на плату двухрядное 2х15 шаг
сно53-60-23 группа Разъемы ---14190
2РМГПД30Б24ШnЕ1(2)
Разъем питания 2 конт. (п) шаг 3,96 на плату (PWL-2)
ШР60У31ЭГn-К
DRB-9FA б/г Имп.разъем
СР50-155ФВ(5) Октябрь группа Разъемы ---15478
РСГ4БТВ вилка группа Разъемы ---817893
Разъем BST14i2F B1 ZR1 S MGN01
МРН1-50-8В
Разъем CENTRONICS 50 кон. (м) пластик, пайка (TELCO-50FC)
4-013 / MX-154, Разъем телевизионный "гн" металл на кабель, винт
РРС3-10-А-9-3(4…12)-В
Разъем пит. штыревой 2,1 мм (п) на пр.бл. 2 винта (DJK-01A)
Разъем RST20i5 96.051.4153.1 -96.051.4153.1 Запрос WE
2РМТ14БПН4ШnВ(А)1(ЛБ)В
Разъем ST18/3B ZEV WS FL
2РМГ18БПЭ7ШnЕ1(2)(Б)
Соединитель GST18I3K1BS 15H 10SW -92.232.1060.1 Запрос WE
2РМ14Б4Г1В1 (гнездо роз.бл.) 75г нов.
ОНЦ-БМ1-102/27Р1-1(1-20)В
2РТТ36КПЭ5Г18В
ШР32СК1ЭШn-К
СР75-214ФВ СОЕДИНИТЕЛЬ РАДИОЧАСТОТНЫЙ. 1990-2010 ГОДА.
Разъем BH-10R(IDC-10MR) угловой
ШР16СК1ЭШn-К


42146