1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Guide me to paste google search code ???? please

Discussion in 'Placement / Reviews / Examples' started by Saifullahraza, Sep 17, 2009.

  1. #1
    where should i place google custom search codes...?:confused:
    with snippet code..


    =================================================
    File
    searchform.php
    =================================================

    <form method="get" class="searchform" action="<?php bloginfo('url'); ?>/">
    <table class="searchform" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="searchfield">
    <input type="text" class="text inputblur" value="<?php the_search_query(); ?>" name="s" />
    </td>
    <td class="searchbutton">
    <input name="submit" value="Search" type="image" src="<?php echo get_bloginfo('template_directory'); ?>/images/magnifier2-gray.gif" style="display: block; border:none; padding: 0 0 0 5px; margin: 0;" />
    </td>
    </tr></table>
    </form>
     
    Saifullahraza, Sep 17, 2009 IP
  2. Brandon_R

    Brandon_R Peon

    Messages:
    330
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Basically you take that HTML/PHP code and paste it in the file where you want it to show. Lets say the file footer.php contains the bottom of the site and you want to put the search button at the bottom of the site. You will open up the footer.php file and paste that code in there inside the body tags.
     
    Brandon_R, Sep 19, 2009 IP