Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1155302

    Hi There

    I am using the Ajax search function on my website and it worked for a while and now it just doesn’t work at all.
    When I type something, it does not auto find like it used to.

    Can you please help?

    #1155567

    Hey Willem7904,

    Please deactivate all plugins one by one to check which one is causing this issue and let us know if this solves the problem.

    Best regards,
    Victoria

    #1219642

    Hi there

    I have a variant of this problem. On our site, when you search for a portfolio item nothing comes back in the results. As far as I can see, checking all the options, I haven’t altered anything. When I search the Enfold demo for some content on a portfolio item, its page is found.

    On our site, many portfolio gird items have no portfolio page. So the majority of the grid items don’t link to their empty portfolio pages either. Some do. You can see the portfolio grid page in the private section below: any grid item with an underlined title is linked to its portfolio page. If there’s no underline, the link is disabled as its portfolio page has no content. In that case, only its excerpt and image exists and is shown on the grid page. I also added the login credentials there.

    So when some one searches the site for content that’s on the portfolio grid, I want the *portfolio grid page* to be returned in the search results, not the actual portfolio page, if possible.

    Finally, do you have templates for the portfolio page styles in the Enfold demo here https://kriesi.at/themes/enfold-2017/ when hovering on the Portfolio menu item? Are they using the portfolio grid element or something else?

    Thanks

    • This reply was modified 4 years, 5 months ago by s29ers.
    #1219649

    Hello, apologies, I had set these portfolio items to exclude from search and missed the checkbox when looking! So that’s OK they show up. However, please help with the last two questions. Please see private section. Thanks.

    • This reply was modified 4 years, 5 months ago by s29ers.
    #1222933

    Hi,

    Have you tried adding a unique category to the posts without links? We can modify the includes > loop-search.php file and check if that category exists and if it does, we can then replace the get_permalink with the link of the portfolio grid page.

    echo "<{$heading} class='post-title entry-title {$css}'><a title='".the_title_attribute('echo=0')."' href='".get_permalink()."' $markup>".get_the_title()."</a></{$heading}>";
    

    The code to get all categories already exists in that file around line 75, so all we need to do is check if the custom category exists.

    $taxonomies  = get_object_taxonomies(get_post_type($the_id));
    

    We can also use custom fields.

    // https://www.advancedcustomfields.com/

    Best regards,
    Ismael

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