• Hi all,

    I run a website for an Alcohol Delivery company, it is not a ecommerce website, but the way I have displayed it looks sort of like product listings just to show product prices.

    What I need is for my search results to be more organised and readable.

    Image: https://dialabeer.uk/wp-content/uploads/2016/07/Searchresults.png

    Currently it looks like this, but I need something more organised, would I be able to show the picture and price of the products the person is searching for?

    Anything that’s better and more readable than the current search results.

    Website: https://dialabeer.uk

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hie MissSearle,

    Yes you can easily customize the way of your search.
    Right now you are just fetching the names of the items.Fetch products images and show them. No big deal. I hope you are using custom post to show items.

    Ask for any further help, if needed.

    Thread Starter MissSearle

    (@misssearle)

    I’m unsure what you mean.

    The search bar is a simple search widget I added.

    The products are just images with text underneath.

    I think things are not that clear yet.
    You are using wordpress default search widget right?
    Please tell me if you have done some custom code for search.
    Please provide in the code of your search.php You can find this file inside your active theme.
    After looking the code there, I hope , I can provide you exact solution you need.
    Looking forward to hear from you.
    Thanks

    Thread Starter MissSearle

    (@misssearle)

    <?php
    /**
     * The template for displaying Search Results pages.
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    
    get_header(); ?>
    
    <section id="primary" class="content-area">
    <div id="content" class="site-content" role="main">
    
    <?php if ( have_posts() ) : ?>
    
    <header class="page-header">
    <h1 id="page-title"><?php printf( __( 'Search Results for: %s', 'vantage' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    </header><!-- .page-header -->
    
    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>
    
    <?php get_template_part( 'content' ); ?>
    
    <?php endwhile; ?>
    
    <?php vantage_content_nav( 'nav-below' ); ?>
    
    <?php else : ?>
    
    <?php get_template_part( 'no-results', 'search' ); ?>
    
    <?php endif; ?>
    
    </div><!-- #content .site-content -->
    </section><!-- #primary .content-area -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search results’ is closed to new replies.