Welcome to WebmasterWorld Guest from 23.20.37.222

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Slightly altering AdSense for Search HTML code

for my website I need it to be more vertical than horizontal

     
5:02 am on Feb 27, 2006 (gmt 0)

10+ Year Member



I've made a nice montly check from Google Adsense for over two years and I would like to put AdSense for Search on my site. Problem is, it needs to go into a column that is only about 120 px wide.

Has anyone had any experience with altering the HTML code to make the AdSense for Search box more vertical than horizontal?

I am considering adding to the AdSense for Search HTML table to put the radio buttons ("Web" and "My domain") each on their own row instead of both on the same row.

Also, I am considering changing the font size from "-1" to "-2".

Has anyone done this or something similar? Is Google okay with this? I don't want to risk what I am making with AdSense text ads. Anyone have any suggestions?

Thanks mucho!

5:38 am on Feb 27, 2006 (gmt 0)

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I recommend you re-read the terms and conditions of AdSense that prohibit altering the HTML whatsoever.
3:19 pm on Feb 27, 2006 (gmt 0)

5+ Year Member




I have seen sites that alter the appearance of the Googe search box via CSS: putting the HTML code that Google supplies into a <div class="whatever"> and then applying formatting to the (Google) form within that div.

That's not altering Google's code, per se.

I too would like to see a Google Search box that is vertical instead of horizontal. That would better fit my website's layout.

4:46 pm on Feb 27, 2006 (gmt 0)

10+ Year Member



When building the code for the search box Google allows you to specify whether you want it to appear horizontal or vertical.

If you want it to be vertical and narrow just make the text box smaller, then choose the options to place the Google logo above the text box and the search button below the text box.

This works best when the only search option is Google search. If you include site search, and have a long domain name, it may not fit into the 120 px area.

5:05 pm on Feb 27, 2006 (gmt 0)

5+ Year Member



This works best when the only search option is Google search. If you include site search, and have a long domain name, it may not fit into the 120 px area.

That's the problem I have: my domain name is too long.

Really how can Google object to altering the code to specify a search of www.mydomainname.com but display only "mydomainname" next to the radio button.

5:20 pm on Feb 27, 2006 (gmt 0)

5+ Year Member



how can Google object to altering the code...?

By banning you?

5:44 pm on Feb 27, 2006 (gmt 0)

5+ Year Member



I had the same issue with a Google site search box where the margin where I needed to put it was just too narrow and my domain name too long. I emailed Google and explained my issue, sent them a mockup of a search box that I wanted to use where I had changed the code, where the box was smaller, and where I changed the text for the site/google search to be one on top of another instead of side by side as well as the size of the text. They approved it. I got the feeling though that it's case by case, and that you shouldn't just make the adjustments without that written Google OK. So you would be well advised to drop them a line, show them what you want to to, and let them approve it.

I was pleasantly surprised that Google was so reasonable. :)

10:22 pm on Feb 27, 2006 (gmt 0)

10+ Year Member



I was told by Google that I could alter the html markup to make the search box xhtml 1.0 strict compliant. I should have asked (and will now) about putting my long domain name on it's own row because it looks silly having the column it's in so wide.

Jennifer

 

Featured Threads

Hot Threads This Week

Hot Threads This Month