• Rozwiązano petro25g

    (@petro25g)


    Witam,

    Jak usunąć opcje szukaj z nagłówka

    kod sidebar.php

    <?php if (is_single()) : ?>
    <div id="thi_col">
    <?php $options = get_option('pixiv_options'); if($options['sidebar_author_info']) : include('single-author-info.php'); endif; ?>
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar One (Single)') ) : else : ?>
    <ul>
    	<li id="archives" class="widgeta">
    					<h3 class="widgetTitle"><?php _e( 'Archives', 'pixiv' ); ?></h3>
    					<ul>
    						<?php wp_get_archives( 'type=monthly' ); ?>
    					</ul>
    				</li>
    
    				<li id="meta" class="widgeta">
    					<h3 class="widget-title"><?php _e( 'Meta', 'pixiv' ); ?></h3>
    					<ul>
    						<?php wp_register(); ?>
    						<li><?php wp_loginout(); ?></li>
    						<?php wp_meta(); ?>
    					</ul>
    				</li>
    </ul>
    <?php endif; ?>
    </div>
    <?php else : ?>
    <div id="sec_col">
    	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar One (Index)') ) : else : ?>
    	<ul>
    		<li id="archives" class="widgeta">
    						<h3 class="widgetTitle"><?php _e( 'Archives', 'pixiv' ); ?></h3>
    						<ul>
    							<?php wp_get_archives( 'type=monthly' ); ?>
    						</ul>
    					</li>
    
    					<li id="meta" class="widgeta">
    						<h3 class="widget-title"><?php _e( 'Meta', 'pixiv' ); ?></h3>
    						<ul>
    							<?php wp_register(); ?>
    							<li><?php wp_loginout(); ?></li>
    							<?php wp_meta(); ?>
    						</ul>
    					</li>
    	</ul>
    	<?php endif; ?>
    </div>
    <?php endif; ?>

Zobacz 5 odpowiedzi - od 1 do 5 (z 5 łącznie)
  • Po co dajesz kod od sidebar.php, skoro chcesz usunąć z nagłówka (header)?

    Twórca wątku petro25g

    (@petro25g)

    gdzies wyczytalem ze ktos podal sidebar.php zeby usunąć „szukaj” bo chodzi mi o ten co jest na górze w nagłówku

    oto kod header

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="" />
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    <link rel="alternate" type="application/rss+xml" title="<?php _e('RSS 2.0 - Entire RSS','pixiv'); ?>" href="<?php echo $feed; ?>" />
    <link rel="alternate" type="application/rss+xml" title="<?php _e('RSS 2.0 - Comments RSS','pixiv'); ?>" href="<?php bloginfo('comments_rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_enqueue_script('jquery'); wp_enqueue_script('pixiv_menu_js'); ?>
    <?php $options = get_option('pixiv_options'); if ( is_singular() && get_option( 'thread_comments' )) {
    	if($options['comment_ajax_enable']) {
    		wp_enqueue_script('pixiv_commajax_js'); wp_enqueue_script('pixiv_comment_js');
    	} else {
    		wp_enqueue_script('comment-reply'); wp_enqueue_script('pixiv_comment_js');
    	}
    } ?>
    <?php wp_head(); ?>
    <?php if(is_home() && $options['index_layout'] == 'right_two') : ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/layout/style_2col_right_index.css" type="text/css"/>
    <?php elseif($options['index_layout'] == 'both_three') : ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/layout/style_3col_index.css" type="text/css"/>
    <?php else : ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/layout/style_2col_left_index.css" type="text/css"/>
    <?php endif; ?>
    <?php if(is_single() && $options['single_layout'] == 'right_two') : ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/layout/style_2col_right_single.css" type="text/css"/>
    <?php elseif($options['single_layout'] == 'both_three') : ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/layout/style_3col_single.css" type="text/css"/>
    <?php else : ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/layout/style_2col_left_single.css" type="text/css"/>
    <?php endif; ?>
    <?php if (is_singular()): ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style-comment.css" type="text/css"/>
    <?php endif; ?>
    <?php if($options['header_menu_new']) : ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style-menu.css" type="text/css"/>
    <?php endif; ?>
    <!--[if IE]>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style-ie.css" type="text/css"/>
    <![endif]-->
    </head>
    <body <?php body_class(); ?>>
    <div id="header">
    	<?php if($options['header_menu_new'] && $options['menu_type'] != 'slave') : ?>
    	<div id="header_inner">
    	<?php else : ?>
    	<div id="header_inner" class="limit_height">
    	<?php endif; ?>
    		<div class="title alignleft">
    		<h1><a href="<?php echo home_url( '/' ); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
    		<?php if($options['header_tagline']) : ?>
    		<h2><?php bloginfo( 'description' ); ?></h2>
    		<?php endif; ?>
    		</div>
    		<?php if($options['menu_type'] != 'main') : ?>
    		<div class="menu2">
    		<?php wp_nav_menu(array('theme_location'=>'slave','depth'=>1)); ?>
    		</div>
    		<?php endif; ?>
    		<?php if($options['google_search_enable']) : ?>
    		<div class="search">
    		<form method="get" class="search" id="searchForm1" action="http://www.google.com/cse">
    		<input class="search_text" type="text" value="<?php _e('Enter the keyword','pixiv'); ?>" onfocus="if (this.value == '<?php _e('Enter the keyword','pixiv'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Enter the keyword','pixiv'); ?>';}" name="q" id="s1" />
    		<input type="hidden" name="cx" value="<?php echo $gSearch;?>" />
    		<input type="hidden" name="ie" value="UTF-8" />
    		<div class="tag_list">
    			<div class="tag_inner">
    				<div class="tag_container"><?php wp_tag_cloud('number=16&largest=9&order=RAND'); ?></div>
    			</div>
    		</div>
    		<input type="submit" name="sa" value="<?php _e('Search','pixiv'); ?>" id="search_button" />
    		</form>
    		</div>
    		<?php else: ?>
    		<div class="search">
    		<form method="get" id="searchForm1" action="<?php echo home_url( '/' ); ?>">
    		<input type="text" value="<?php _e('Enter the keyword','pixiv'); ?>" onfocus="if (this.value == '<?php _e('Enter the keyword','pixiv'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Enter the keyword','pixiv'); ?>';}" name="s" id="s1" />
    		<div class="tag_list">
    			<div class="tag_inner">
    				<div class="tag_container"><?php wp_tag_cloud('number=16&largest=9&order=RAND'); ?></div>
    			</div>
    		</div>
    		<input type="submit" value="<?php _e('Search','pixiv'); ?>" id="search_button" />
    		</form>
    		</div>
    		<?php endif; ?>
    		<?php if($options['menu_type'] != 'slave') : ?>
    			<?php if($options['header_menu_new']) : ?>
    			<div class="menu new" id="menus">
    			<?php else : ?>
    			<div class="menu" id="menus">
    			<?php endif; ?>
    			<?php wp_nav_menu(array('theme_location'=>'primary','depth'=>2)); ?>
    			</div>
    		<?php endif; ?>
    	</div>
    </div>
    <div id="banner"></div>
    <?php if($options['header_ads_enable']) : ?>
    <div class="ads_block" id="first"><?php echo $options['header_ads_code'] ?></div>
    <?php endif; ?>
    <div id="content">
    Twórca wątku petro25g

    (@petro25g)

    ktos pomoze w problemie?

    Spróbuj wyciąć ten fragment

    <?php if($options['google_search_enable']) : ?>
    		<div class="search">
    		<form method="get" class="search" id="searchForm1" action="http://www.google.com/cse">
    		<input class="search_text" type="text" value="<?php _e('Enter the keyword','pixiv'); ?>" onfocus="if (this.value == '<?php _e('Enter the keyword','pixiv'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Enter the keyword','pixiv'); ?>';}" name="q" id="s1" />
    		<input type="hidden" name="cx" value="<?php echo $gSearch;?>" />
    		<input type="hidden" name="ie" value="UTF-8" />
    		<div class="tag_list">
    			<div class="tag_inner">
    				<div class="tag_container"><?php wp_tag_cloud('number=16&largest=9&order=RAND'); ?></div>
    			</div>
    		</div>
    		<input type="submit" name="sa" value="<?php _e('Search','pixiv'); ?>" id="search_button" />
    		</form>
    		</div>
    		<?php else: ?>
    		<div class="search">
    		<form method="get" id="searchForm1" action="<?php echo home_url( '/' ); ?>">
    		<input type="text" value="<?php _e('Enter the keyword','pixiv'); ?>" onfocus="if (this.value == '<?php _e('Enter the keyword','pixiv'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Enter the keyword','pixiv'); ?>';}" name="s" id="s1" />
    		<div class="tag_list">
    			<div class="tag_inner">
    				<div class="tag_container"><?php wp_tag_cloud('number=16&largest=9&order=RAND'); ?></div>
    			</div>
    		</div>
    		<input type="submit" value="<?php _e('Search','pixiv'); ?>" id="search_button" />
    		</form>
    		</div>
    		<?php endif; ?>

    Twórca wątku petro25g

    (@petro25g)

    dla innych szukajacych wrzucam co trzeba usunac z pliku header.php

    <div id="topsearch">
        <?php get_search_form(); ?>
    </div>

Zobacz 5 odpowiedzi - od 1 do 5 (z 5 łącznie)

Temat ‘opcja szukaj w nagłówku’ jest zamknięty na nowe odpowiedzi.