WordPress.org

Ready to get started?Download WordPress

Forums

Remove Search Date (6 posts)

  1. Jamie_Pressac
    Member
    Posted 1 year ago #

    Hi i have been searching for a solution to remove the date stamp on my search results so far i have found this link

    http://www.blogtechnics.com/wordpress/remove-timestamp-search-result-wordpress

    However my theme doesn’t seam to have any of the entries within the search.php file i am not too familiar with code but capable of editing with instruction.

    Here's the contents of my php file.

    <?php get_header(); ?>
    <div class="container">
    	<div class="row">
    
    		<div id="content" class="grid_9 <?php echo of_get_option('blog_sidebar_pos') ?>">
    
    			<h1>Search for: "<?php the_search_query(); ?>"</h1>
    
    			<?php 
    
    				if (have_posts()) : while (have_posts()) : the_post(); 
    
    						// The following determines what the post format is and shows the correct file accordingly
    						$format = get_post_format();
    						get_template_part( 'includes/post-formats/'.$format );
    
    						if($format == '')
    						get_template_part( 'includes/post-formats/standard' );
    
    				 endwhile; else:
    
    				 ?>
    
    				 <div class="no-results">
    					<?php echo '<p><strong>' . __('There has been an error.', 'theme1672') . '</strong></p>'; ?>
    					<p><?php _e('We apologize for any inconvenience, please', 'theme1672'); ?> <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php _e('return to the home page', 'theme1672'); ?></a> <?php _e('or use the search form below.', 'theme1672'); ?></p>
    					<?php get_search_form(); /* outputs the default WordPress search form */ ?>
    				</div><!--no-results-->
    
    			<?php endif; ?>
    
    			<?php get_template_part('includes/post-formats/post-nav'); ?>
    
    		</div><!-- #content -->
    		<?php get_sidebar(); ?>
    
    	</div>
    </div>
    <?php get_footer(); ?>

    Thanks in advance.

    Jamie

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try looking in includes/post-formats/standard

  3. Jamie_Pressac
    Member
    Posted 1 year ago #

    Thanks for the quick reply esmi :) i have found post formats in my style.css file but still not entirely sure what im looking to change.

    Heres the code,

    /* Post Formats
    ---------------------------------------- */
    /* Images Format Type */
    .recent-posts .format-image {
      float: left;
      margin: 0 20px 20px 0;
    }
    .image-post-format {
      float: left;
      margin: 0 0 10px 0;
      padding: 7px;
      background: #f6f6f6;
      position: relative;
    }
    /* Quote Format Type */
    /* Link Format Type */
    /* Link Format Type */
    /* Audio Format Type */
    .recent-posts .format-audio {
      margin-bottom: 2em;
    }
    .recent-posts .format-audio .audio-wrapper {
      margin-bottom: .5em;
    }
    /* Video Format Type */
    .video {
      position: relative;
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
      margin: 0 0 2% 0;
    }
    .video iframe, .video object, .video embed {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
    /* Gallery Post Format */
    .slides_container_gallery {
      width: 600px;
      margin-bottom: 10px;
      height: 300px;
    }
    .slides_container_gallery .g_item {
      width: 600px;
      display: block;
    }
    .slides_container_gallery .g_item img {
      width: 100%;
      height: auto;
    }
  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Try looking in includes/post-formats/standard

  5. Jamie_Pressac
    Member
    Posted 1 year ago #

    I can't find this anywhere

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Look in your theme's folder.

Topic Closed

This topic has been closed to new replies.

About this Topic