You can use Relevanssi for the ajax search query. Open up enfoldfunctions-enfold.php and replace
$defaults = array('numberposts' => 5, 'post_type' => 'any', 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false);
$_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s']);
$query = array_merge($defaults, $_REQUEST);
$query = apply_filters('avf_ajax_search_query', http_build_query($query) );
$posts = get_posts( $query );
with
$defaults = array('numberposts' => 5, 'post_type' => 'any', 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false);
$_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s']);
$searchquery = array_merge($defaults, $_REQUEST);
if(!function_exists('relevanssi_do_query'))
{
$searchquery = apply_filters('avf_ajax_search_query', http_build_query($searchquery));
$posts = get_posts($searchquery);
}
else
{
global $query;
$tempquery = $query;
$searchquery = apply_filters('avf_ajax_search_query', $searchquery);
$tempquery->query_vars = $searchquery;
relevanssi_do_query($tempquery);
$posts = $tempquery->posts;
}
Unfortunately this is not possible at the moment but you can hide certain menu items by inserting “noMobile” into the css class field of these items (if you can’t find this option field on the menu option page search for the “Screen Options” tab in the right top corner and click on it. Then tick the checkbox next to “CSS Classes” to activate this field).
If you really need to separate menus you can suggest the feature here: https://kriesi.at/support/topic/enfold-feature-requests and we’ll look into it if more users request it.
Hi Guys
Since updating to latest theme files, the search button and also the “View All Results” buttons do not work. They both just refresh the home page. The dynamic list is working fine. It’s more if I hit View All Results or just type a word and hit enter.
Any suggestions?
Thanks in advance.
Cheers
Jase
Hello Dude,
Thanks for your response.
In this case, all these two ‘��’ should be removed. Therefore, the breadcrumb is created, the PHP code should cut off the string before these two invalid characters. Sometimes, you will see one of these as ‘�’. But this is just a representation of UTF-8 encodings in a browser, and using W3C HTML Validator reveals invalid character code is “xE3” in this case.
This can happen when you are trying to truncate a UTF-8 string at any character boundary. For example, if you have a string “あ”, which consists of 3 bytes “E3 81 82”. If you cut the string within these 3 characters, the original character “あ” will be corrupted, and it is represented like this ‘�’.
This issue is not limited to Japanese. In German, for example, a character ‘ä’ can be encoded as two bytes: “C3 A4”, and cutting these two bytes into half will make the ‘ä’ character invalid.
With a little search, I found a similar article:
http://stackoverflow.com/questions/8484162/how-to-truncate-an-utf8-string-in-php
I think using mb_strimwidth instead of substr will resolve this issue.
Thank you,
I absolutely love this theme, but this is the one problem I can’t seem to resolve. I have two websites using Enfold (drjenna.net and horsestreat.com). On the drjenna.net site I am having issues with the menu overlapping the logo as the window is made narrow and on iPad portrait. Horsestreat.com the menu completely disappears when viewing in iPad portrait mode. I’ve searched through this forum and tried some of the suggested CSS fixes as well as the modifying the .js file, and none have worked.
Please help!
Unfortunately we have no converting tool yet and the only solution is to modify the data directly in the database with tools like phpmyadmin. Access the wordpress database and click on the “wp_options” table. Then search for the data field with the “option_name” value “avia_options_enfold” and replace “enfold” with your child theme name. If the child theme name is “Enfold Child theme” the new “option_name” would be “avia_options_enfold_child_theme”.
As the title says, I’ve searched long and hard for a theme that suited my tastes, even paid someone alot of dough to try to create a site for me in WordPress but I just never liked it. Luckily last week I found ENFOLD and was sooo pleased that it offered the looks & functionality I’ve been looking for. Very luckily I figured out enough of it to get my new site up…..woot!
Anyhow, one prob I’m having is changing the favicon. I’ve searched this forum as well as many others, and have tried loading my favicon.ico file to my root directory where WP is located. I also followed WP instructions and put the file in the ENFOLD directory as well. I’ve cleared my cache, but still no new favicon.
Therefore, I saw one guy suggest adding some code on the header.php. When I opened the header.php I did find some mention of an Avia favicon but the code around it looked very different so I didn’t dare attempt to change anything.
So the million dollar question for me is how can I change the favicon?
Thanks for your help, and once again thanks for creating such a kickass looking theme!
Kind regards,
Chris
Hi,
my site link is http://career.guru99.com/
I am using your enfold theme.i want some customization in the theme.
1) Remove search button from header
2) apply different color to title and links to differentiate between them
3) enlarge font size to 14px
so how can i do this
4)how to include google search in header
see this image for what i am actually need
http://screencast.com/t/gTwaghZo
please help
Hi liondancetoronto,
Please do not make duplicate topics for your issues/questions. It makes it more difficult for others to search and for us to answer.
Regards,
Devin
Hi Devin and thanks for your reply,
as the plugin defined allmost every aspect of it’s design it is pretty isolated from the theme’s design. Of course it uses similar element (like a search-button), but they are all defined in it’s own styles. As I’m not a CSS-pro I’m happy that I at least found out how to manually define the design for the plugin but as most of the elements are already defined in enfold’s design I thought there might be a way to just reference the design and say “match plugin-button-design with enfold-button-design” like some kind of nesting.
If that’s not possible via CSS could you give me at least an idea on how to optimize my approach… for example there is an element called “sabai-btn” I know how to change the color with this:
.sabai-btn {
color:#000000
}
but how could I set the color dynamically that it’s always the color that comes from Enfold’s selected color-scheme?
Thanks again
quicky
Glad you found a quick fix :)
Let us know if you have any other questions or issues.
Regards,
Devin
Hello,
I’m currently using WordPress 3.6 and Enfold 2.0. While upgrading to Enfold 2.0 solved a lot of problems I was having with Post Sliders and Easy sliders (i.e. not displaying caption titles and title text, not rotating etc), a new one has been created. With the Post Slider, I am unable to choose what posts to display. The Which Entries? box is blank and if I click on the little arrows to bring up a drop box, all I get is ‘Display entries from:’ No other options are given. And when I click on it, nothing happens.
I am having similar problems with the Blog Posts Content element. The situation is a little better in that the ‘Do you want to display blog posts?’ drops down to give me a choice of ‘Display Blog Posts’ or ‘Display entries from a custom taxonomy.’ However, if I click on ‘Display entries from a custom taxonomy’ a ‘Which entries?’ box appears, but again, the only thing in the drop down menu is “Display entries from:’. And again, no choices are given and clicking on it does nothing.
Strangely, the post sliders I created prior to updating where I nominated a particular custom taxonomy are working fine (although if I try to change the custom taxonomy I have the same problems as above i.e. nothing to chose from.) The one on my home page was left to display the latest blog posts and is now blank although it was working fine before the latest update.
I am also having a problem with the blog post content element in that it won’t display at all if I choose Grid Style from the ‘Blog Style’ dropdown box. I have tried all the other options in that dropdown box and they display fine. Bizarrely, it is only the Grid Style that doesn’t work – basically it creates white space a couple of centimetres deep on the web page where it was meant to appear.
I have searched the Form and tried all the suggestions. I have re-installed Enfold at least three times using Filezilla without any error messages at any time. I deactivated all the plugins. The problems still persist.
Any ideas on how I can solve this frustrating problem?
My site is: http://www.petermoore.net
Thanks
Hi guys,
this time I do have a pretty generic question: I do have a plugin that has a pretty detailed custom css to define all aspects of the plugins design. As I would like the plugin to be aligned with Enfold’s design I would like to match different elements of the plugin that do have a defined style in the theme. E.g. if you go to http://www.dasjuengstegericht.org/verzeichnis/ you can see that there’s the default “search-button” from Enfold and the custom “search-button” from the plugin.
Taking this example: As I would like to be flexible (in case of updates), I would like to build some kind of reference that would match “if plugin-search-button-style, then use default-search-button-style”.
I know it will be a lot of work to manually match that but as I only want to do it for some items, my question is: Is that possible, and how can it be done?
Thanks in advance for any idea…
Cheers!
quicky
i removed add_filter( ‘wp_nav_menu_items’, ‘avia_append_search_nav’, 10, 2 ); from functions_enfold.php
seemed to do the trick.
I have only just bought the theme and it is by far and away the most advanced template I have ever handled.
I’d like to see:
1. fly out / pop-out login (similar to the search function) so users don’t to navigate to a separate page to login.
2. Sortable functionality for not only portfolio items but other post types.
Brilliant theme!
Hi, I recently posted a topic here on the forums about the Ubermenu plugin and was told that it would be compatible and only require a few changes to the styling. However, I’ve since purchased it and have found that when viewed on an iPad 2 (damn things) in portrait mode both the Ubermenu and Enfold responsive menu appear.
I’ve spent considerable time looking into this and it gets pretty technical, mentioning replacing the themes menu completely by editing .php files as well as manually searching for traces of residual styles that will then need to be deleted by manually searching through all the themes files too.
Please can someone kindly guide me through how to deal with this effectively as I tried to avoid these problems by asking important questions in advance and editing .php files sound slightly beyond my area of comfort here. It would also be good to see a couple of brief tutorials on this subject at some point in the near future too, as I am sure it would be very useful to a great deal of Enfold users.
Many thanks,
Actually after some more research it appears that godaddy had a php5.ini file in to root of my domain. I cleared out the entire folder structure, re-installed wordpress, and let the install create a new php.ini file (not php5). Once that was complete i was able to install the ENFOLD template and all was good.
Hello!
I’m looking to have a full width Google Maps on a page. I saw on https://kriesi.at/support/topic/enfold-feature-requests that you have ‘Fullscreen Google Maps Element’ as ‘requested and accepted’ and I also have been searching the forum to see if there were more explainations. I found several:
(1) https://kriesi.at/support/topic/responsive-google-map-in-slider#post-125226
(2) https://kriesi.at/support/topic/google-maps-in-full-width-slider
(3) https://kriesi.at/support/topic/googlemaps-with-predefined-height
I went with (1) and set width to 2560 so on big screens it’s also full width, but on smaller screens, the center of map just goes out. I guess this is the responsive issue you where talking on the topic?
<iframe width="2560" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Madrid,+Spain&aq=0&oq=madrid&sll=37.0625,-95.677068&sspn=59.249168,135.263672&ie=UTF8&hq=&hnear=Madrid,+Community+of+Madrid,+Spain&t=m&ll=40.416633,-3.703766&spn=0.23525,1.373291&z=11&iwloc=A&output=embed"></iframe>
As for option (2) and (3), I see people are going with other options but I didn’t quite catch it…
On a theme I bought previously, in the contact, you have a fulll width map http://themeforest.net/item/coworker-responsive-multipurpose-template/full_screen_preview/3981356. It works with on a template page basis (not slider); it doesn’t resize dynamically but the pin on the map is always in the center, whatever the screen size.
Will you include soon a similar feature? Or is there a way to force pin to the center of the screen?
Thank you in advance!
Anne-Sophie
Hi,
It should be there by default. Go to Appearance > Menu panel. On Theme Locations, select a Main Menu.
Regards,
Ismael
How do I activate the search feature in the header of Enfold. I can seem to find that option? Thanks in advance!
Still not working and I’ve tried several times.
I want to try to install this plugin that is quite complete: http://codecanyon.net/item/fanciest-author-box/2504522?WT.ac=search_item&WT.seg_1=search_item&WT.z_author=ThematoSoup; but not if it is compatible with Enfold.
I also tried with this plugin: http://codecanyon.net/item/google-plus-author-information-in-search-results/3093737, but is problematic
Hey,
Recently brought and put together a website for a client with Enfold but a lot of features don’t seem to be working or I’m ignorant of why there not working.
Here is the Website: http://heartnsoulmatters.com
Here are the problems im having that I desperately need help with:
Responsive Design:
1. Menu Disappears at mobile size, no drop down menu
2. Big Space under Layer Slider at mobile size
General Theme problems:
1. Back to Top Button Doesn’t Appear
2. Menu doesn’t get smaller/Shink on scroll
3. Image’s from Media box animations dont work (Using Latest FF and Chrome Browers, and IE9)
Everything on the site is out of the box , The only things that I have have changed is 2 quick CSS
.title_container {
display: none;
}
#top #menu-item-search {
display: none;
}
So it should work, please advise me why these features arn’t working.
Hi,
You can use this plugin to maximize the search power of your website: SearchWP
Refer to this link in order to integrate the plugin on ajax search: http://kriesi.at/documentation/enfold/use-searchwp-instead-of-the-standard-search/
Thanks,
Nick
Hey!
The ajax search is powered by the avia_ajax_search function in functions-enfold.php
The function has several filters that makes customization of the search parameters easy, but I am not sure if it will be enough for Relevanssi to hook into it.
Argh! Stupid me. I’m using a child-theme, and I forgot that the functions-enfold.php I have in my child theme, and I was changing everthing in the parent theme hahaha
Thank you, now it’s working perfectly ;)
Hi,
The revision I gave you for the function-enfold.php works on my end. Please do it again, remove browser cache the reload the page.

Regards,
Ismael
In functions-enfold.php replace
if(!empty($post->post_excerpt))
{
$excerpt = apply_filters( 'avf_ajax_search_excerpt', avia_backend_truncate($post->post_excerpt,70," ") );
}
else
{
$excerpt = apply_filters( 'avf_ajax_search_time_format', get_the_time(get_option('date_format'), $post->ID) );
}
with
if(!empty($post->post_excerpt))
{
$excerpt = apply_filters( 'avf_ajax_search_excerpt', avia_backend_truncate($post->post_excerpt,70," ") );
}
else
{
$excerpt = apply_filters( 'avf_ajax_search_time_format', get_the_time(get_option('date_format'), $post->ID) );
}
$taxonomies = get_object_taxonomies(get_post_type($post->ID));
$cats = '';
$excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'));
if(!empty($taxonomies))
{
foreach($taxonomies as $taxonomy)
{
if(!in_array($taxonomy, $excluded_taxonomies))
{
$terms = get_the_terms( $post->ID, $taxonomy );
if(!empty($terms))
{
foreach($terms as $term)
{
$cats .= $term->name .' ';
}
}
}
}
}
and
$output .= $excerpt;
$output .= " </span>";
$output .= "</span>";
with
$output .= $excerpt;
$output .= " </span>";
$output .= "</span>";
$output .= __('Categories:','avia_framework') . ' ' .$cats;
This will add a list of all categories to the search result. However it’s not possible to apply add links to the categories which point to the category archive pages because the search results are wrapped into an a href tag and you can’t create a link inside a link. On the other hand the layout will be messed up if you add the categories after the a href element.