• 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>

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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: https://wordpress.pastebin.com/ErPTYBJL

    Thread Starter neteater

    (@neteater)

    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>

    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 https://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;
    }

    Thread Starter neteater

    (@neteater)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to show adsense search in centere’ is closed to new replies.