• Resolved hariprasad2k0

    (@hariprasad2k0)


    Hello Sir,

    I just want to remove the date, categories, author link and comments link that appear below blog post title from the search results section.

    I found the single.php and removed it, now it is not visible when the blog post is viewed but it shows up when a search is made.

    i cannot find similar codes in searchresults.php like i found it in single.php

    Please help me who to remove those details and link from appearing in search results.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator cubecolour

    (@numeeja)

    which theme are you using?

    Thread Starter hariprasad2k0

    (@hariprasad2k0)

    i am using a customized theme

    These are the code i found in search.php

    <?php
    /**
     * @author madars.bitenieks
     * @copyright 2011
     */
    ?>
    <?php get_header(); ?>
    
    <?php
    
    $sidebar_key="madza_sidebar_type";
    $sidebar=get_post_meta($post->ID, $sidebar_key, true); 
    
    ?>
    
    <!--TEXT CONTENT -->
    <div class="<?php 
    
        if($sidebar=="Right"){ echo "right-content"; } else if($sidebar=="Left") { echo "left-content"; } 
    
        else {  echo of_page_layout(); echo "-content";   } ?>">
    
    <?php if ( have_posts() ) : ?>
    				<?php get_template_part( 'loop', 'search' ); ?>
    <?php else : ?>
    				<div id="post-0" class="post no-results not-found">
    					<h2 class="entry-title"><?php _e( 'Nothing Found', "madza_translate"  ); ?></h2>
    					<div class="entry-content">
    						<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with Correct BL and Container Number', "madza_translate"  ); ?></p>
    
    					</div>
    				</div>
    
    <?php endif; ?>
    
    </div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Moderator cubecolour

    (@numeeja)

    So what theme did you start with? – ie what theme is your customised theme based on?

    Also please post a link to the site.

    Thread Starter hariprasad2k0

    (@hariprasad2k0)

    It is a theme named g6feature a premium theme.

    Here is the link : http://twinlinklogistics.com/

    Thread Starter hariprasad2k0

    (@hariprasad2k0)

    You will see a search bar in the menu

    use this keyword and see BHAD123456

    Moderator cubecolour

    (@numeeja)

    You need to request support from the vendor of that theme for modification support as commercial themes are not supported here – one reason being that people who don’t own the theme have no access to the code.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Want to customize search results page’ is closed to new replies.