• Resolved stayalert

    (@stayalert)


    Our site will not be used as a blog. My current hang ups:

    I’d like to remove: ‘Recent Comments’, ‘Archives’, ‘Categories’, and ‘Meta’ from the right side on our secondary pages.

    I’d also like to change ‘Enter Search Blog…’ to ‘Enter Search’ on the search function.

    Would like to remove the ‘Leave a Comment’ section.

Viewing 1 replies (of 1 total)
  • Hi,

    To solve this issue follow the given below instructions:

    First of all create a “Child-Theme”.

    After it create a “sidebar.php” file into your “

    Child-Theme” directory and paste given below line of code.

    <!-- sidebar starts -->
    <div class="right_sidebar">
        <?php if ( is_active_sidebar( 'sidebar-primary' ) )
    	{ dynamic_sidebar( 'sidebar-primary' );	}
    	else  {
    	$args = array(
    	'before_widget' => '<div class="sidebar_widget">',
    	'after_widget' => '</div><div class="clearfix margin_top3"></div>',
    	'before_title' => '<div class="sidebar_title"><h4>',
    	'after_title' => '</h4></div>'
    	);
    	} ?>
    </div><!-- end right sidebar -->

    Now for second issue create a “search.php”, “searchform.php” and “weblizar-breadcrumbs.php” file into your “Child-Theme” directory.

    Now copy the given below code and paste into “search.php”, “searchform.php” and “weblizar-breadcrumbs.php” file.

    “search.php” file code is here:

    <?php get_header(); ?>
    <div class="page_title2">
    <div class="container">
    
        <div class="two_third">
        	<div class="title">
    		<h1><?php printf( __( 'Search Results for: %s', gr_td ), '<span>' . get_search_query() . '</span>'  ); ?></h1>
    		</div>
            <?php weblizar_breadcrumbs(); ?>
        </div>
        <div class="one_third last">
        	<div class="site-search-area">
        	<form method="post" id="site-searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
            <div>
            <input class="input-text" name="s" id="s" value="Enter Search" onFocus="if (this.value == 'Enter Search') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Enter Search';}" type="text" />
            <input id="searchsubmit" value="Search" type="submit" />
            </div>
            </form>
    		</div><!-- end site search -->
        </div>
    </div>
    </div><!-- end page title -->
    <div class="clearfix"></div>
    <div class="container">
    	<div class="content_left">
    	<?php
    	if ( have_posts()):
    	while ( have_posts() ): the_post();
    	get_template_part('post','content'); ?>
    	<?php endwhile;
    	weblizar_navigation();
    	else :
    	get_template_part('nocontent');
    	endif;?>
    	<div class="clearfix mar_top2"></div>
    	</div>
    	<?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    Similarly “searchform.php” file code is here:

    <div class="site-search-area">
    	<form method="post" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
            <div>
            <input class="ainput-text" name="s" id="s" value="Enter Search"  onFocus="if (this.value == 'Enter Search') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Enter Search';}" type="text" />
            <input id="searchsubmit" value="Search" type="submit" />
            </div>
        </form>
    </div><!-- end site search -->

    and “weblizar-breadcrumbs.php” file code is here:

    <div class="page_title2">
    	<div class="container">
    		<div class="two_third">
    			<div class="title"><h1><?php the_title(); ?></h1></div>
    			<?php weblizar_breadcrumbs(); ?>
    		</div>
    		<?php if(!is_page()) :?>
    		<div class="one_third last">
    			<div class="site-search-area">
    				<form method="post" id="site-searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    					<div>
    						<input class="input-text" name="s" id="s" value="Enter Search" onFocus="if (this.value == 'Enter Search') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Enter Search';}" type="text" />
    						<input id="searchsubmit" value="Search" type="submit" />
    					</div>
    				</form>
    			</div><!-- end site search -->
    		</div>
    		<?php endif; ?>
    	</div>
    </div><!-- end page title -->
    <div class="clearfix"></div>

    To solve third issue copy “single.php” from your core theme

    directory and paste into your “Child-Theme” directory.

    Now find the given below line of code snippet.

    <?php comments_template(”,true); ?>

    and comment it

    Now save the changes

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Removing 'Blog' references’ is closed to new replies.