Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1197564

    Hi,

    Can you please help me in getting round images to show on the search results pages instead of numbers.

    Link is: https://adxarchitectural.com.au/?s=metinno

    Thanks
    Alice

    #1198796

    Hey adxdigitalmarketing,
    Sorry for the late reply, find the loop-search.php in enfold/includes and make a copy of it and upload it to your child-theme subfolder “includes” such as: “enfold-child/includes”
    On line 33 look for:
    echo "<span class='search-result-counter {$counterclass}'>{$post_loop_count}</span>";
    and replace with:

    $searchthumb = get_the_post_thumbnail( $the_id, 'large' );
    echo "<span class='search-result-counter {$counterclass}'>{$searchthumb}</span>";

    The expected results:
    2020-03-29_061303.png

    Best regards,
    Mike

    #1198842

    yes – and maybe then you have to style a bit this new content:

    .search-result-counter {
        padding: 0;
    }
    
    .search-result-counter img {
    	width: 100%;
    	height: 100%;
    	border-radius: 100px;
    }

    and if you like to have both Counter and above the heading an image replace with f.e.

    $searchimage = get_the_post_thumbnail( $the_id, 'entry_with_sidebar' ); // look to the info on the bottom - you can take what you like to have here
    echo "<span class='search-result-image'>{$searchimage}</span>";
    echo "<span class='search-result-counter {$counterclass}'>{$post_loop_count}</span>";

    then style it with f.e.:

    .search-result-image img {
        width: 300px;
    }

    _________________

    just for info:

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );
    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );	
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );	
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>710, 'height'=>375 );
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );
    • This reply was modified 4 years, 8 months ago by Guenni007.
    #1198844

    Sorry double post

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.