Green Hills Arts

Main menu:

Site search

Categories

Archive

Changing the colors of Google’s AdSense for Search

This is trivial, but I didn’t see it posted anywhere else.

Google has a wizard that generates code you can use to put their AdSense for Search on your site. The wizard allows you to change the colors of the search results page, so you can match the colors used elsewhere on your site.

What if you want to change the colors later? It’s a hassle to go back to their wizard, if you just want to tweak the colors a little.

In the code their wizard generates, you should see a line that looks something like this:

value=”GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;…

The colors are the six digit hexadecimal values that immediately follow a label. For example, following the label GALT is the color 008000 (hex).

Google’s wizard lets you choose colors for eight aspects of the search results page. Here are the labels used for each of those aspects.

Border: DIV
Title: ALC and LC
Background: BGC
Text: T
URL: GALT
Visited URL: VLC
Light URL: GFNT and GIMP
Logo Background: LBGC

For example, if you wanted to change the color of visited URL’s to bright red, you would look for the VLC label, then change the color that follows (663399 in the line above) to “ff0000″ (bright red).

Write a comment