Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
March 25, 2020 at 5:28 am #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
AliceMarch 29, 2020 at 12:14 pm #1198796Hey 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>";
Best regards,
MikeMarch 29, 2020 at 3:48 pm #1198842yes – 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.
March 29, 2020 at 3:54 pm #1198844Sorry double post
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.