WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. blackshadow
    Member
    Posted 7 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>

    <br/>
    <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></tr>
    <tr>
    <td nowrap="nowrap">
    <table>
    <tr>
    <td>
    <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>
    </tr><tr><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>
    </tr>
    </table>
    <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>
    </td></tr></table>
    </form>
    <!-- SiteSearch Google -->

    Thanks in advance

  2. blackshadow
    Member
    Posted 7 years ago #

    Anyone?

  3. blackshadow
    Member
    Posted 7 years ago #

    Worked it out - put it in a text widget.

Topic Closed

This topic has been closed to new replies.

About this Topic