• oliver27Gilbert

    (@oliver27gilbert)


    Hey,

    I’m trying to make my picture smaller which displays in my search results when I perform a search (pic from woocommerce/products)

    Here’s the code for the search form…can anyone tell me how to change the picture size??

    uwpqsf_result_tempt makes a picture be displayed. If anyone can help I’d be eternally grateful. Thanks.

    <?php
    function uwpqsf_result_tempt($pagenumber, $pages = '', $range = 4, $id,$getdata){
    	$showitems = ($range * 2)+1;  
    
    	$paged = $pagenumber;
    	if(empty($paged)) $paged = 1;
    
    	if($pages == '')
    	 {
    
    	   global $wp_query;
    	   $pages = $query->max_num_pages;
    
    	    if(!$pages)
    		 {
    				 $pages = 1;
    		 }
    	}   
    
    	if(1 != $pages)
    	 {
    	  $html = "<div class=\"uwpqsfpagi\">  ";
    	  $html .= '<input type="hidden" id="curuform" value="#uwpqsffrom_'.$id.'">';
    
    	 if($paged > 2 && $paged > $range+1 && $showitems < $pages)
    	 $html .= '<a href="#">« '.__("First","UWPQSF").'</a>';
    	 $previous = $paged - 1;
    	 if($paged > 1 && $showitems < $pages) $html .= '<a href="#">‹ '.__("Previous","UWPQSF").'</a>';
    
    	 for ($i=1; $i <= $pages; $i++)
    	  {
    		 if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
    		 {
    		 $html .= ($paged == $i)? '<span class="upagicurrent">'.$i.'</span>': '<a href="#">'.$i.'</a>';
    		 }
    	 }
    
    	 if ($paged < $pages && $showitems < $pages){
    		 $next = $paged + 1;
    		 $html .= '<a href="#">'.__("Next","UWPQSF").' ›</a>';}
    		 if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) {
    		 $html .= '<a href="#">'.__("Last","UWPQSF").' »</a>';}
    		 $html .= "</div>\n";$max_num_pages = $pages;
    		 return apply_filters('uwpqsf_pagination',$html,$max_num_pages,$pagenumber,$id);
    	 }
Viewing 4 replies - 1 through 4 (of 4 total)
  • mrtom414

    (@mrtom414)

    In the dashboard setting->media you will find a list of picture sizes that are created by wordpress when you upload an image.

    im not sure if this is what your looking for. I know there are several plugins that will resize the images that you have already upload. Unfortunately, I don’t know the names of them off the top of my head.

    Sorry I couldn’t be of more help

    esmi

    (@esmi)

    mrtom414

    (@mrtom414)

    thanks esmi that was the plugin I had in mind.

    Thread Starter oliver27Gilbert

    (@oliver27gilbert)

    If you go to the following link and click on any of the check boxes and then search you will see the problem…

    http://gifts4who.co.uk/gift-search/

    the images that come up are too big I don’t think that plug-in will help

    Thanks for the reply though

    If anyone knows how to fix it please help!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Where is my picture code?’ is closed to new replies.