-
AuthorPosts
-
December 6, 2018 at 12:08 pm #1041594
Hi Guys, I am wondering how I could customize the search results of the ajax search results
What and where would I need to edit so the search pulls this information forward from posts?
Also how can I get the ajax result to not say POST above what it finds,
Many thanks in advance,
December 11, 2018 at 12:42 am #1043447Hey Sam,
That can be done with CSS – so u do need to write them :)
If you do not have knowledge – you can always consider to hire someone who can help you with that.Best regards,
BasilisDecember 11, 2018 at 12:03 pm #1043710Hi, Basilis,
I undertstand, I can no locate the CSS script for the ajax search result, could you please advice as to where I would find it.
Many thanks
December 11, 2018 at 5:49 pm #1043891How do I make the search pull certain things from a page? like in the second image above
December 12, 2018 at 5:30 pm #1044418Hi sambo258,
For a more efficient search and more options, you might want to use a plugin.
Here is an article for you
https://colorlib.com/wp/search-plugins-for-wordpress/If you need further assistance please let us know.
Best regards,
VictoriaDecember 13, 2018 at 8:20 pm #1045005Is there not a way to add to this to bring certain classes forward to fit in?
` $link = apply_filters(‘av_custom_url’, get_permalink($post->ID), $post);
$output .= “<a class =’av_ajax_search_entry {$extra_class}’ href='”.$link.”‘>”;
if ($image !== “” || $iconfont) {
$output .= “<span class=’av_ajax_search_image’ {$iconfont}>”;
$output .= $image;
$output .= “</span>”;
}
$output .= “<span class=’av_ajax_search_content’>”;
$output .= ” <span class=’av_ajax_search_title’>”;
$output .= get_the_title($post->ID);
$output .= ” </span>”;
if ($excerpt !== ”) {
$output .= ” <span class=’ajax_search_excerpt’>”;
$output .= $excerpt;
$output .= ” </span>”;
}
$output .= “</span>”;
$output .= “</a>”;
}
}`- This reply was modified 5 years, 11 months ago by sambo258.
December 17, 2018 at 8:34 pm #1046520Hi,
Right now, we only have an option to modify the results of the query’
https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Search/avf_ajax_search_query.phpbut there is no way to modify the design section.
Best regards,
BasilisDecember 20, 2018 at 7:15 pm #1047881What do I add to bring certain elements through? Like the review start rating for example please.
Many thanks, Sam
December 22, 2018 at 8:23 pm #1048616Hi sambo258,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
VictoriaDecember 22, 2018 at 8:29 pm #1048621look here – maybe this is a solution for you: https://kriesi.at/support/topic/show-featured-images-in-search-results-page/#post-805253 and the following answer.
on newest Enfold 4.5.2. it is now on line 33
December 23, 2018 at 2:59 pm #1048797i try to get the excerpt now besides the image
Edit : here is the edited php file: https://pastebin.com/dl/xPGfrSFJ
see results here : https://webers-testseite.de/ostler/?s=Fullthis is the css for quick css:
.search-result-image { display: inline-flex; } .search-result-image img { width: 300px; } .search-result-image { float: left; margin-bottom: 20px; padding-right: 30px; }
put the edited php file into child-theme/includes folder – that is all
December 23, 2018 at 7:56 pm #1048864Thank you Guenni007, as always you have proven yourself an indispensable problem solver.
How would you make the live search result the same?
Basically I am trying to pull more information from the post page eg
December 24, 2018 at 1:55 am #1048943These things can be achieved with Enfold funds – everything else freelancers must arrange in a paid version for you.
Excuse me – but even my time for the community is limited. -
AuthorPosts
- You must be logged in to reply to this topic.