Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author TC.K

    (@wp_dummy)

    You can customize it in your theme’s search.php template (most likely is this template, if not try consult with the theme developer)

    Thread Starter tyber1

    (@tyber1)

    Ok how can I display still pictures in search results? Ajax or Default Search Template I just need to enable the display of pictures and everything.

    Plugin Author TC.K

    (@wp_dummy)

    this is depends on what pictures you want to show. If it is thumbnail, you can use get_the_post_thumbnail() function.

    respectyoda

    (@respectyoda)

    TC.K is correct, but you must make sure that the theme supports thumbnails, before using the get_the_post_thumbnail() function.

    By the way, make sure you are working with a child theme as you don’t want to directly edit the actual theme files themselves.

    Thread Starter tyber1

    (@tyber1)

    respectyoda

    (@respectyoda)

    @tyber1, you have to use CSS to manipulate the layout.

    Thread Starter tyber1

    (@tyber1)

    I do not understand how to simply access the data in the block, СЫЫ or search.php

    respectyoda

    (@respectyoda)

    I see. In that case, you need to use a FTP client such as Filezilla to connect to the server. Once you are able to do that, create a child theme and use a code editor such as Sublime Text, Notepad++, etc in which you copy whatever is in search.php in the parent theme folder and create a ‘search.php’ file in the child theme folder and paste the code there. Then use the code editor previously mentioned to edit the code. FYI, this requires coding knowledge.

    Thread Starter tyber1

    (@tyber1)

    I have already done all this, I use a file search-filter.php, I just do not understand that there is correct, I put the blocks of data output and I can not draw beautifully, that’s what I have right now in search-filter.php

    <?php
    /**
     * The template for displaying Search results pages.
     *
     * @package Cryout Creations
     * @subpackage Parabola
     * @since Parabola 1.0
     */
    
    get_header(); ?>
    
    		<section id="container" class="<?php echo parabola_get_layout_class(); ?>">
    			<div id="content" role="main">
    	<?php cryout_before_content_hook(); ?>
    
    			<?php if ( have_posts() ) : ?>
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
     <img class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(); ?>"/>
    
    							<?php
    				/* Run the loop for the search to output the results.
    				 * If you want to overload this in a child theme then include a file
    				 * called loop-search.php and that will be used instead.
    				 */
    
    				 get_template_part( 'content/content', get_post_format('post') ); ?>
    
    								<?php if(wpsc_product_is_donation()) : ?>
    									<label for="donation_price_<?php echo wpsc_the_product_id(); ?>"><?php _e('Donation', 'wpsc'); ?>: </label>
    									<input type="text" id="donation_price_<?php echo wpsc_the_product_id(); ?>" name="donation_price" value="<?php echo wpsc_calculate_price(wpsc_the_product_id()); ?>" size="6" />
    								<?php else : ?>
    									<?php wpsc_the_product_price_display(); ?>
    									 <!-- multi currency code -->
                                        <?php if(wpsc_product_has_multicurrency()) : ?>
    	                                    <?php echo wpsc_display_product_multicurrency(); ?>
                                        <?php endif; ?>
    									<?php if(wpsc_show_pnp()) : ?>
    										<p class="pricedisplay"><?php _e('Shipping', 'wpsc'); ?>:<span class="pp_price"><?php echo wpsc_product_postage_and_packaging(); ?></span></p>
    									<?php endif; ?>
    								<?php endif; ?>
    							<!--close wpsc_product_price-->
    
    										<?php endwhile; ?>
    			<?php if($parabola_pagination=="Enable") parabola_pagination(); else parabola_content_nav( 'nav-below' ); ?>
    
    			<?php else : ?>
    
    				<article id="post-0" class="post no-results not-found">
    					<header class="entry-header">
    						<h1 class="entry-title"><?php _e( 'Nothing Found', 'parabola' ); ?></h1>
    					</header><!-- .entry-header -->
    					<h4><?php printf( __( 'No search results for: %s.', 'parabola' ), '<span>' . get_search_query() . '</span>' ); ?></h2>
    					<br><div class="contentsearch"><?php get_search_form(); ?></div>
    				</article><!-- #post-0 -->
    
    				<?php endif; ?>
    
    			<?php cryout_after_content_hook(); ?>
    			</div><!-- #content -->
    		<?php parabola_get_sidebar(); ?>
    		</section><!-- #primary -->
    
    <?php get_footer(); ?>

    Thread Starter tyber1

    (@tyber1)

    I Do not Know PHP, I do by intuition

    respectyoda

    (@respectyoda)

    If you don’t know how to code, then I would suggest you to find a programmer via jobs on this website in order to format the file the way you want it as this forum only is for free support.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘|Search result not show images’ is closed to new replies.