[resolved] How can I make a widget to do this? (3 posts)

  1. blackshadow
    Posted 8 years ago #

    I am very new to WordPress and have a very limited (ie almost non existent) knowledge of coding websites.

    I'd like a widget that allows a google search the same as what I have in the right sidebar of my site - http://www.blackshadow.com.au

    I made the search by putting the following code in the r_sidebar script of my template - would be much better if I could make a widget so I can move it about.

    Code is:

    <!-- SiteSearch Google -->
    <form method="get" action="http://www.google.com.au/custom" target="google_window">
    <table border="0" bgcolor="#000000">
    <tr><td nowrap="nowrap" valign="top" align="left" height="32">

    <img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle"></img>

    <input type="hidden" name="domains" value="blackshadow.com.au"></input>
    <label for="sbi" style="display: none">Enter your search terms</label>
    <input type="text" name="q" style="width:175px; " maxlength="255" value="" id="sbi"></input>
    <td nowrap="nowrap">
    <input type="radio" name="sitesearch" value="" checked id="ss0"></input>
    <label for="ss0" title="Search the Web"><font size="-1" color="#ffffff">Web</font></label></td>
    <input type="radio" name="sitesearch" value="blackshadow.com.au" id="ss1"></input>
    <label for="ss1" title="Search blackshadow.com.au"><font size="-1" color="#ffffff">blackshadow.com.au</font></label></td>
    <label for="sbb" style="display: none">Submit search form</label>
    <input type="submit" name="sa" value="Search" id="sbb"></input>
    <input type="hidden" name="client" value="pub-9426254923038871"></input>
    <input type="hidden" name="forid" value="1"></input>
    <input type="hidden" name="ie" value="ISO-8859-1"></input>
    <input type="hidden" name="oe" value="ISO-8859-1"></input>
    <input type="hidden" name="cof" value="GALT:#FFFFFF;GL:1;DIV:#000000;VLC:FFFFFF;AH:center;BGC:000000;LBGC:000000;ALC:FFFFFF;LC:FFFFFF;T:FFFFFF;GFNT:FFFFFF;GIMP:FFFFFF;FORID:1"></input>
    <input type="hidden" name="hl" value="en"></input>
    <!-- SiteSearch Google -->

    Thanks in advance

  2. blackshadow
    Posted 8 years ago #


  3. blackshadow
    Posted 8 years ago #

    Worked it out - put it in a text widget.

Topic Closed

This topic has been closed to new replies.

About this Topic