Forums

how to show adsense search in centere (5 posts)

  1. neteater
    Member
    Posted 1 year ago #

    hi i've edited my header.php to show google adsense search in main page and it works but i want to show search box in centere instead of corner can someone tell me how to do that
    site is studentlife.co.in
    i also tried following html code
    <p style="text-align: center;">adsense code</p>

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    move the code to after

    <!--Wrapper-->
    <div id="wrapper">

    and remove the <p style="text-align: center;"> (also the </p>)

    and add the style="text-align: center;" into the <div> of your code:

    like so: http://wordpress.pastebin.com/ErPTYBJL

  3. neteater
    Member
    Posted 1 year ago #

    ok thaks it seems good and how to remove that search option of theme as i tried to edit searchform.php but there was no effect this is my searchform.php

    <div id="search">
    
    	<form method="get" action="<?php bloginfo('url'); ?>/">
    
    	<input type="text" name="s" id="s" onfocus="if
    (this.value==this.defaultValue) this.value='';" onblur="if(this.value == '') this.value=this.defaultValue;" value="Search..." />
    
    	<input id="searchsubmit" type="submit" value="" />
    	</form>
    
    </div>
  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    two possibilities:

    - edit header.php(?) and remove the div from <div id="custom-search"> to the closing </div> inclusive.

    - or add 'display: none;' to this style in http://www.studentlife.co.in/wp-content/themes/deep-blue/css/header.css:

    #custom-search {
    	width: 198px;
    	margin: 10px 0 0 0;
    	padding: 0 70px 0 0;
    	float: right;
    }
  5. neteater
    Member
    Posted 1 year ago #

    ok done it can you please tell me why i am not able to drag and drop widgets to side bar is there any problems

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.