Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1041594

    Hi Guys, I am wondering how I could customize the search results of the ajax search results

    This is how i have it right now through childtheme mods,

    I want the review box to bring forth certain information

    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,

    #1043447

    Hey 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,
    Basilis

    #1043710

    Hi, 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

    #1043891

    How do I make the search pull certain things from a page? like in the second image above

    #1044418

    Hi 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,
    Victoria

    #1045005

    Is 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.
    #1046520

    Hi,

    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.php

    but there is no way to modify the design section.

    Best regards,
    Basilis

    #1047881

    What do I add to bring certain elements through? Like the review start rating for example please.

    Many thanks, Sam

    #1048616

    Hi 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,
    Victoria

    #1048621

    look 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

    #1048797

    i 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=Full

    this 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

    #1048864

    Thank 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

    image

    #1048943

    These 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.

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