-
Search Results
-
I have seen an article or two that show up in searches on adding tiktok to the social profiles in enfold but they don’t work and use tumblr as the logo instead of tiktok.
Can you help direct me to an article that works or send me instructions please??
Thank you,
ChrisTopic: Search by authors
Hi, do you know if there is a way to include author names in the enfold search result?
Thank you very much
I am trying to exclude posts (woocommerce products) which have a specific category (id=340) from the ‘avia_ajax_search’ popup.
have copied the function if(!function_exists(‘avia_ajax_search’))from /enfold/functions-enfold.php to /enfold-child/functions.php
Is this correct, or do i need a seperate /enfold-child/functions-enfold.phpif(!function_exists('avia_ajax_search')) { //now hook into wordpress ajax function to catch any ajax requests add_action( 'wp_ajax_avia_ajax_search', 'avia_ajax_search' ); add_action( 'wp_ajax_nopriv_avia_ajax_search', 'avia_ajax_search' ); function avia_ajax_search() { global $avia_config; $exclude_category_id = 340; // Replace with the actual category ID unset($_REQUEST['action']); if(empty($_REQUEST['s'])) $_REQUEST['s'] = array_shift(array_values($_REQUEST)); if(empty($_REQUEST['s'])) die(); $defaults = array('numberposts' => 5, 'post_type' => 'any', 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false, 'results_hide_fields' => ''); $_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s']); $search_parameters = array_merge($defaults, $_REQUEST); if ( $search_parameters['results_hide_fields'] !== '' ) { $search_parameters['results_hide_fields'] = explode(',', $_REQUEST['results_hide_fields']); } else { $search_parameters['results_hide_fields'] = array(); } $search_query = apply_filters('avf_ajax_search_query', http_build_query($search_parameters)); $query_function = apply_filters('avf_ajax_search_function', 'get_posts', $search_query, $search_parameters, $defaults); $posts = (($query_function == 'get_posts') || !function_exists($query_function)) ? get_posts($search_query) : $query_function($search_query, $search_parameters, $defaults); $search_messages = array( 'no_criteria_matched' => __("Sorry, no posts matched your criteria", 'avia_framework'), 'another_search_term' => __("Please try another search term", 'avia_framework'), 'time_format' => get_option('date_format'), 'all_results_query' => http_build_query($_REQUEST), 'all_results_link' => home_url('?' . http_build_query($_REQUEST)), 'view_all_results' => __('View all results','avia_framework') ); $search_messages = apply_filters('avf_ajax_search_messages', $search_messages, $search_query); if(empty($posts)) { $output = "<span class='av_ajax_search_entry ajax_not_found'>"; $output .= "<span class='av_ajax_search_image ".av_icon_string('info')."'>"; $output .= "</span>"; $output .= "<span class='av_ajax_search_content'>"; $output .= " <span class='av_ajax_search_title'>"; $output .= $search_messages['no_criteria_matched']; $output .= " </span>"; $output .= " <span class='ajax_search_excerpt'>"; $output .= $search_messages['another_search_term']; $output .= " </span>"; $output .= "</span>"; $output .= "</span>"; echo $output; die(); } //if we got posts resort them by post type $output = ""; $sorted = array(); $post_type_obj = array(); foreach($posts as $post) { $sorted[$post->post_type][] = $post; if(empty($post_type_obj[$post->post_type])) { $post_type_obj[$post->post_type] = get_post_type_object($post->post_type); } } //now we got everything we need to preapre the output foreach($sorted as $key => $post_type) { // check if post titles are in the hidden fields list if ( ! in_array('post_titles', $search_parameters['results_hide_fields'] ) ) { if(isset($post_type_obj[$key]->labels->name)) { $label = apply_filters('avf_ajax_search_label_names', $post_type_obj[$key]->labels->name); $output .= "<h4>".$label."</h4>"; } else { $output .= "<hr />"; } } foreach($post_type as $post) { $image = ""; $extra_class = ""; // Get the categories for the post $post_categories = wp_get_post_categories($post->ID); // Check if the excluded category is in the post categories if (!in_array($exclude_category_id, $post_categories)) { // check if image is in the hidden fields list if (!in_array('image', $search_parameters['results_hide_fields'])) { $image = get_the_post_thumbnail($post->ID, 'thumbnail'); $extra_class = $image ? "with_image" : ""; $post_type = $image ? "" : get_post_format($post->ID) != "" ? get_post_format($post->ID) : "standard"; $iconfont = $image ? "" : av_icon_string($post_type); } $excerpt = ""; // check if post meta fields are in the hidden fields list if ( ! in_array('meta', $search_parameters['results_hide_fields'] ) ) { if(!empty($post->post_excerpt)) { $excerpt = apply_filters( 'avf_ajax_search_excerpt', avia_backend_truncate($post->post_excerpt,70," ","...", true, '', true) ); } else { $excerpt = apply_filters( 'avf_ajax_search_no_excerpt', get_the_time( $search_messages['time_format'], $post->ID ), $post ); } } $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>"; } } $output .= "<a class='av_ajax_search_entry av_ajax_search_entry_view_all' href='".$search_messages['all_results_link']."'>".$search_messages['view_all_results']."</a>"; echo $output; die(); } }Hi guys,
I have raised this as a ticket with Relevanssi but wondered if there has been an update from Enfold’s end.
Previous posts have not provided a valid solution.When Relevanssi is installed the Ajax search results that appear from the Enfold Search bar is set to all results meaning you get an extremely long load time for ajax results and a list as long as the entire page!
If you turn on Throttling in Relevanssi settings it limits this to 500 entries but also limits the full search results page to 500 entries.If I add the following function it limits the Ajax search to 5 entries BUT also limits the full search results page to 5 entries. This is obviously not great for users and in solving the ajax issue it causes another problem!
add_filter( 'pre_option_relevanssi_throttle_limit', function( $limit ) { return 5; } );Is there a way to limit just the Ajax search results to 5 rather than globally adjusting the Relevanssi search to 5.
I want to limit Ajax instant searches to between 5 – 50 results and let the actual search results page display all or use the standard 500 throttle limit.
Topic: Critical error on kriesi.at
Tried to use the search facility on the support forum (https://kriesi.at/support/forum/enfold/) just now, 6 pm UK time, type in my search words of “load featured image”, click on the magnifying glass and I get this error every time:
There has been a critical error on this website. Learn more about troubleshooting WordPress.“featured image” does work.
Hi Enfold
How do I delete the search icon on mobile screens
Cheer
Alan ;)Topic: AJAX search CSS
Hey guys,
Can I get your help with some CSS please?
When you run an AJAX search, Enfold has a little spinner icon and behind it is the theme colour (in my case red).
Client wants to remove the red background and only show the spinner, but due to the way this is injected I’m having a hard time isolating the CSS needed to do this.
Could you please assist?
Thanks
Tim
Hey there!
I’m considering getting an Enfold theme (They’re all fantastic btw), as I´m currently helping my father set up a Website for his ‘handyman’ business. Doing some research I found this website – https://cronerenovering.dk/
I can see it was built with Kriesi + Enfold. Do you have any idea what demo they’re using?I’m NOT going to pirate an entire website, I just want to show my father the possibilities and customizations of you guys’ themes. Hope you can help me out and get me further in the purchase process :)
Very kind regards,
Andreas G.Topic: google search result
Hi
I recently did a site at https://gropodtreeguards.com.au
when i do a google search for “gro pod tree guards”
the first result for thsis site comes up aswhich has an enfold logo –
is there a way to get the sites gropod logo to display on this page?Topic: License
Good morning,
On April 8, 2023, I updated the license for the Enfold theme that was regularly installed on my website, Dablec.com.
Unfortunately, this domain experienced a hacker attack that caused significant damage to its search engine indexing.
The domain is expiring on the 21st of this month, and I will not be renewing it because I have created a new one with the IT extension.
Is it possible to transfer your license to the new site, dablec.it?
Thank you,
Tiziano MolettaHello,
I put a new site live recently, changing it from a different WordPress template to Enfold. I was careful to keep all content and URL structure the same.
After going live, I now have only 1 page showing as indexed in Google Search Console, the rest are not indexed, apparently due to a redirect on each page.
I am struggling to work out why this is, as I’ve not set up any redirects. Can anyone offer any help?!
I’d be really grateful as the rankings and traffic have drastically decreased as a result. SEMRush audit is also showing pages with permanent re-directs but I can’t see how or why they have occurred.
Login details are in the private content.
Many thanksHi guys,
I am trying to remove some of the options from the Woocommerce default product sorting options.
As per this post here: https://www.businessbloomer.com/woocommerce-remove-rename-add-default-sorting-options-shop/This code doesnt do anything On my Enfold sites.
I found this on another forum post which seems to suggest that the default filters hook has a different name.
function avia_remove_woocommerce_frontend_search_params() { remove_action('woocommerce_before_shop_loop','avia_woocommerce_frontend_search_params', 20); } add_action( 'init', 'avia_remove_woocommerce_frontend_search_params');Can you provide me with the correct code to remove some of the options.
Copied from the article – This code doesnt work with Enfold.
/** * @snippet Remove Sorting Option @ WooCommerce Shop * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli * @testedwith WooCommerce 3.8 * @donate $9 https://businessbloomer.com/bloomer-armada/ */ add_filter( 'woocommerce_catalog_orderby', 'bbloomer_remove_sorting_option_woocommerce_shop' ); function bbloomer_remove_sorting_option_woocommerce_shop( $options ) { unset( $options['rating'] ); return $options; } // Note: you can unset other sorting options by adding more "unset" calls... here's the list: 'menu_order', 'popularity', 'rating', 'date', 'price', 'price-desc'Topic: Cannot Instal Enfold
Hi,
I have a dedicated server and have a WP site with Enfold for several years and have no issues with it.
I am now making a new site so purchased another license, downloaded the latest files and created a new WP installation but I cannot install it.
In the dashboard if I try to install I get the error: “The link you followed has expired.”
I have searched for how to fix this and have been directed to the php.ini and .ht access to make changes to the limits. I have tried all of this but no sucess.
Then I tried the Cpanel file manager to upload the Zip of Enfold to the Themes directory. Extracted it. Can see it in the Appearance menu. When I select activate I get an error message: “There has been a critical error on this website. Please check your site admin email inbox for instructions.”
I have tried for hours and just can’t get this to install.
Thanks,
Jason







