Tagged: Adventurous Pro, format, results, search
- This topic has 2 replies, 2 voices, and was last updated 8 years, 3 months ago by Dan.
February 9, 2015 at 3:11 am #51313DanParticipant
I’m a bit of a WordPress newbie. I’m looking to change the format of the search result and I’m not sure if this is controlled by the WP setting, the theme or if I need a plugin.
I’m using Adventurous Pro and looking to format the results returned in the search page. By default it seems to be showing Titles/Images/a few lines of copy/categories/tags. See this example from my site: http://www.residents4u.org/?s=john+lodge&submit=Search
It takes a lot of space and usually a user wants to scan down lots of results and use their eye to pick the one they want. The images/tags/categories etc. take a lot of space. Is there a way to format the results so they look more google like, i.e. a list of titles and short abstracts in a list?
Thanks for any advice.
DanFebruary 9, 2015 at 11:43 am #51341SakinKeymaster
@Dan: Yes, it will be nice. We are in the process of uploading new version where there will be clean search template like you described.
For now, you can build child theme and add the
content-search.phpfile and add the following code. For child theme, you can check out http://catchthemes.com/blog/create-child-theme-wordpress/
<?php /** * The template for displaying Search Result * * @package Catch Themes * @subpackage Adventurous * @since Adventurous 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-container"> <header class="entry-header"> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'adventurous' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> </header><!-- .entry-header --> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <footer class="entry-meta"> <?php edit_post_link( __( 'Edit', 'adventurous' ), '<span class="edit-link">', '</span>' ); ?> </footer><!-- .entry-meta --> </div><!-- .entry-container --> </article><!-- #post-<?php the_ID(); ?> -->February 9, 2015 at 1:36 pm #51345DanParticipant
Thanks Sakin, I’ll give it a go.
- The topic ‘Format of returned search results’ is closed to new replies.