thomasGuest
Hello,
I would like to replace portfolio links in enfold search by the ajax link, not page.
Is there a snippet to allow this ??
I tried to find solution in forum but I didn’t find
Thank you and best reagrds
Hi,
A “nofollow” on the search link really doesn’t meet any of those criteria
I think it does make sense when you want to prioritize other content or redirect the crawlers. By adding the “nofollow” attribute to the search link, we are telling the crawlers not to follow, and in turn not index, the items on the search results page, which is reported to be causing duplicate contents. That is the whole intention of that modification. We are by no means SEO expert, so any suggestions from other users are welcome.
Under “3. Crawl prioritization”:
Using nofollow on these links enables Googlebot to crawl other pages you’d prefer to see in Google’s index.
=======================================================================================
If duplicate content is the issue, then I would think that a noindex would be the correct way to handle.
Thanks for the suggestion. Like I said, the search results page is already set to “noindex, follow”, but it’s still generating duplicated contents as reported by other users.
If you really want to change that attribute, edit the functions-enfold.php file, look for this code around line 124:
<a href="?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a>
Best regards,
Ismael
Hi,
Please try adding this at the very end of your themes/child theme’s functions.php file:
// Reset search field
function searchPlaceholder(){
?>
<script>
jQuery(document).ready(function() {
jQuery('#header #searchform').find("input[type=text]").val(" ");
});
</script>
<?php
}
add_action('wp_footer', 'searchPlaceholder');
// End function
For more information about adding custom script please check this link.
Best regards,
Vinay
Hey chartinboy,
Thank you for using Enfold.
You can use this filter to remove hidden products from the search results page.
if ( ! function_exists( 'pre_get_posts_remove_hidden_product' ) ){
function pre_get_posts_remove_hidden_product( $query = false ) {
if(!is_admin() && is_search()){
$query->set( 'meta_query', array(
'relation' => 'OR',
array(
'key' => '_visibility',
'value' => 'hidden',
'compare' => 'NOT EXISTS',
),
array(
'key' => '_visibility',
'value' => 'hidden',
'compare' => '!=',
),
));
}
}
}
add_action( 'pre_get_posts', 'pre_get_posts_remove_hidden_product' );
Unfortunately, you can’t exclude those products from the side navigation.
Best regards,
Ismael
Hi,
@HokusPocus: That attribute was not added to disallow robots from following the search results page. The attribute is only added to the search tooltip icon, which we suspect is causing duplicate content issue. More info here:
// https://support.google.com/webmasters/answer/96569?hl=en
The actual search results page is still set to “noindex, follow”. It was modified in response to this thread:
// https://kriesi.at/support/topic/how-to-remove-s-from-search-url/
What is the effect: On all your Enfold clients, all crawler and bots stop here, break down the crawling process of the whole pages and ends the crawling. Wow, that’s great.
Do you have any reference for that?
Best regards,
Ismael
Hi,
I have an urgent matter to resolve with the update of the Enfold theme on our school website, because it doesn’t work proprely anymore. We can’t update pages and upload or publish informations, etc.
I purchased for support but can’t find any contact email or a way to ask for help – only this forums that I don’t really know how to use. I lost a few hours searching for answers and found nothing usefull.
Where can I get support – someone who could help me solve the issue of updating Enfold from 4.4.1 to the latest version on the latest version of WordPress 5.0.2? Can someone help me please? I need this solved asap.
Regards,
Katja
Hi support,
Google Search Console continue to claim that this folder / file is having error on mobilsites: /wp-content/themes/enfold/framework/.
Is there anything to do about it?
Thanks :-)
/OKEIwebbureau
Would like to follow up with regards to the Enfold theme setting the search results to nofollow.
Is there a way to disable the Ajax search function from rel=nofollow to rel=follow as it is important for search engines to follow the link, but not necessarily index.
Thanks for your help.
Hello everyone,
I am trying to place a search bar within the header, see the screen shot for the mock-up of what I am trying to create/style.
screen-shot
So far I have;
1. Activated header widget area in wp-content/themes/enfold/functions.php
2. Since I am using Logo Left, Menu Below, I used the following code snippet…
//——————————–
// Header widget area for menu below
//——————————–
add_action( ‘ava_main_header’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {
dynamic_sidebar( ‘header’ );
}
3. The widget text is now within the header, BUT it is above the logo, rather than centered (to the right of the logo) as shown in my mock-up.
Could you tell me how I can style the search bar and/or widget to display as shown in my mock-up?
Thank You!.
Hi Yigit,
I just updated one of my ENFOLD installations to 4.5.2 –– and I am now searching for the process to get the new Envato token. Over time, I bought 10 licenses of the ENFOLD theme. How am I supposed to create (and install) the 10 Envato token(s)?
Thanks in advance for your assistance and kind regards,
verbaine
Hi UFreeman,
https://cl.ly/2b4b5ecf377b This code overrides the font-family rule for the input and so it breaks things.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#top #footer #searchsubmit.avia-font-entypo-fontello,
body #footer #searchsubmit.avia-font-entypo-fontello {
font-family: 'entypo-fontello' !important;
}
Happy holidays!
If you need further assistance please let us know.
Best regards,
Victoria
Hello there, Happy Xmas for everyone! :)
Currently I would like to make 2 columns checkout page since there is no reason for people to scroll down so much. I searched Enfold forum but couldn’t find any help. Is there a way to solve this?
https://prnt.sc/lyy195
-
This topic was modified 7 years, 3 months ago by
mantas0527.
I fixed it myselft, by changing the funtions-enfold.php. Due to the fact that we are using Zen Menu Logic the theme_location is not set to “avia” but the function is looking for this to add the search icon. So I have added this.
function avia_append_search_nav ( $items, $args )
{
if(avia_get_option(‘header_searchicon’,’header_searchicon’) != “header_searchicon”) return $items;
if(avia_get_option(‘header_position’, ‘header_top’) != “header_top”) return $items;
if ((is_object($args) && $args->theme_location == ” or $args->theme_location == ‘avia’ ) || (is_string($args) && $args = “fallback_menu”))
{
global $avia_config;
ob_start();
get_search_form();
$form = htmlspecialchars(ob_get_clean()) ;
$items .= ‘<li id=”menu-item-search” class=”noMobile menu-item menu-item-search-dropdown menu-item-avia-special”>
<span class=”avia_hidden_link_text”>’.__(‘Search’,’avia_framework’).'</span>
‘;
}
return $items;
Hi,
Thank you for using Enfold.
I can’t reproduce the issue on my end. I clicked on the search icon, type on the search field but it’s not scrolling back to the top as you have described. I supposed you’re referring to the “search field” when you say “text field”. Could give you us a screenshot or a screen cast of the issue?
Best regards,
Ismael
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
Hi gang,
I know I’m a little late to the game, but life & work kept me busy.
Over the upcoming weekend, I finally wanted to take care of updating to the latest Enfold versions for all my clients’ sites, in preparation of then also updating to WordPress 5.x. A few days back, I followed the link given in the Enfold admin panel, to the detailed description on how to generate the envato token, https://kriesi.at/documentation/enfold/install-enfold-theme/#theme-registration.
The step by step description was there, I just didn’t get around to it right away, and had to restart the browser in the meantime. Just came back to it a few moments ago – and the description is nowhere to be found.
HELP???!!!
Have you moved it somewhere else? Please advise!
I’d really appreciate it immensely if I could use the previously accessible step by step guide instead of having to do all the research by myself and losing hours of precious time over it.
Thanks!
—–
EDIT: FOUND IT!!!
For anyone else who might be looking for this:
-
This reply was modified 7 years, 3 months ago by
fkmediaworks.
mike mehielGuest
Hi, I am a dev who inherited a site built using Enfold. I just don’t have access to the themeforest account that was used to purchase the theme, but we have an active license.
With the latest update to our theme, our search icon disappeared from our main nav.
We get this notification from Google fairly regularly:
“Search Console has identified that your site is affected by 1 new Mobile Usability related issue. This means that Mobile Usability may be negatively affected in Google Search results. We encourage you to review and consider fixing this issue.
New issue found:
Content wider than screen”
Just wondering is this a common issue and is it something we need to worry about?
Everything looks fine to me on mobile and nothing looks wider than the screen, tested on multiple devices.
Hi,
Please add following code to Functions.php file of your child theme
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
function enfold_customization_modify_thumb_size( $size ) {
$size['widget'] = array('width'=>250, 'height'=>250);
$size['portfolio'] = array('width'=>250, 'height'=>250);
$size['entry_with_sidebar'] = array('width'=>250, 'height'=>250);
return $size;
}
Then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/.
You can find default sizes in Functions.php file of Enfold parent theme by searching “imgSize”
Best regards,
Yigit
Hey info224,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (min-width:1100px){
.main_menu {
right: -75px;
}
}
@media only screen and (max-width: 1100px) {
nav.main_menu, #menu-item-search {
display: block !important;
}
.menu-item {
display: none;
}
.av-burger-menu-main.menu-item-avia-special {
display: block;
}
}
If you need further assistance please let us know.
Best regards,
Victoria
Hey adamghart,
I checked on the link you gave however it returns:
Nothing Found
Sorry, the post you are looking for is not available. Maybe you want to perform a search
As for the feature to popup image in quickview window, I’m afraid Enfold doesn’t have feature since we are dependent on the woocommerce plugin for ecommerce stuff, maybe some plugin can help you with this functionality.
Best regards,
Nikko
Hi Alan,
When you refresh the page the black frame is gone.
https://cl.ly/237bff243808 But you need to have the menu to be burger menu up to 990px screens or even 1024px because it the menu breaks.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 1024px) {
nav.main_menu, #menu-item-search {
display: block !important;
}
.menu-item {
display: none;
}
.av-burger-menu-main.menu-item-avia-special {
display: block;
}
}
If you need further assistance please let us know.
Best regards,
Victoria
I had the same issue a couple of weeks ago with two of my sites. It IS NOT an issue with Enfold. It IS an issue with Googlebot and how is reaching certain Enfold components. This includes certain folders used for css styling. Not sure if you have a robots.txt file in your directory structure but it would help to have one. robots.txt should include the following lines and be put in the root directory. Once there, go into Google Search console for your site and resubmit the site to clear the errors. This in Google’s screwup.
robots.txt contents
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Crawl-delay: 10
User-agent: Googlebot
Allow: /*.js*
Allow: /*.css*
Allow: /wp-content/*.js*
Allow: /wp-content/*.css*
Allow: /wp-includes/*.js*
Allow: /wp-includes/*.css*
Allow: /wp-content/plugins/*.css*
Allow: /wp-content/plugins/*.js*
Allow: /wp-content/plugins/*ajax*
Allow: /wp-content/themes/*.css*
Allow: /wp-content/themes/*.js*
Allow: /wp-content/themes/*ajax*
Allow: /wp-content/themes/*.woff*
Allow: /wp-content/themes/*.ttf*
Allow: /wp-content/plugins/*/images/
Allow: /wp-content/uploads/
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-content/
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /wp-content/plugins/
Disallow: /?s=*
Sitemap: https://yourdomain.com/sitemap.xml
In addition, it may be wise to use the Redirection plugin and setup permanent redirects for any obviously strange 404s showing up that reference Enfold folders. They can just be redirected to the site home URL.
-
This reply was modified 7 years, 3 months ago by
crtdude.
Hi there,
Currently, when I assign a Custom Error 404 Page in the Enfold Settings, all URLs triggering a 404 error are being redirected to that assigned page. This works nice, but has one flaw; for example the Google Search Console now only logs 1 URL on my site with a 404 error code; the custom page I chose. I’m afraid Google at some point could judge this as if things are sabotaged; even when hundreds of pages are not exisiting anymore; they’re all redirected to one page, which is the only page logged as a 404.
We’ve actually seen this happen last week, and we’ve immediately unset the Custom 404 Page. I think the solution should be to render the custom 404 page on the actual URL’s that’s causing the 404, instead of redirecting to the custom 404 page.
Regards,
Steve
Hi!
I’ve got “Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.” when I try to edit this page: https://www.brendalelie.nl/mindfulness-nijmegen/
Other pages can be edited normally and all updates are done (WordPress, Enfold, plugins, PhP is 7,3). I already had this problem before the recent WordPress-update.
Strange enough, I had this problem earlier with another page. In that case, updating Enfold solved the problem.
I’ve searched for solutions on this forum but didn’t find anything that worked for my situation.
Does anyone has an idea?
Hi there,
When using WordPress 5+, Enfold and WooCommerce memberships it will throw a fatal error when editing WooCommerce > Memberships
I’m pretty sure this is an Enfold specific incompatibility as other sites running WooCommerce Memberships and WordPress 5+ doesn’t have this Fatal Error.
Here’s the debug output
Fatal error: Uncaught TypeError: Argument 1 passed to Avia_Gutenberg::handler_display_post_states() must be of the type array, string given, called in /var/www/DOMAIN.COM.CLOAKED/public_html/wp-includes/class-wp-hook.php on line 286 and defined in /var/www/DOMAIN.COM.CLOAKED/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:366 Stack trace: #0 /var/www/DOMAIN.COM.CLOAKED/public_html/wp-includes/class-wp-hook.php(286): Avia_Gutenberg->handler_display_post_states('', Object(WP_Post)) #1 /var/www/DOMAIN.COM.CLOAKED/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters('', Array) #2 /var/www/DOMAIN.COM.CLOAKED/public_html/wp-admin/includes/template.php(1933): apply_filters('display_post_st...', Array, Object(WP_Post)) #3 /var/www/DOMAIN.COM.CLOAKED/public_html/wp-admin/includes/class-wp-posts-list-table.php(943): _post_states(Object(WP_Post)) #4 /var/www/DOMAIN.COM.CLOAKED/public_html/wp-admin/includes/class-wp-posts-list-table.php(857): WP_Posts_List_Table->column_title(Object(WP_Post)) #5 /var/www/p in /var/www/DOMAIN.COM.CLOAKED/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 366
The error happens because /enfold/config-gutenberg/class-avia-gutenberg.php on line 366 this function
public function handler_display_post_states( array $post_states, WP_Post $post )
Assums that $post_states is always an array, which it iisn’t nessecarily, it can also be a string.
It should be changed to
public function handler_display_post_states( $post_states, WP_Post $post )
Then in the same file on line 382 it is assumed again to be an array
$key = array_search( 'Gutenberg', $post_states );
if( false !== $key )
{
unset( $post_states[ $key ] );
}
It should be changed to check if it’s actually an array
if( is_array($post_states ) ) {
$key = array_search( 'Gutenberg', $post_states );
if( false !== $key )
{
unset( $post_states[ $key ] );
}
}
Kind Regard
Yan Knudtskov
Hi,
I’m sorry, you are correct, my Product gallery in the Enfold > Shop options was set to “Default enfold product gallery”, and my code doesn’t work in that case.
After changing my setting I tried your code to see if I could adjust it any, but I just got an error “Warning: Missing argument 3 for thumb_add_title()” I tried searching for the correct code but didn’t find it.
Is your code above missing something?
I took a look at your site and see your caption over the images, but they are not moving down on each image click as you describe.
Best regards,
Mike
Hi,
Thank you for using Enfold.
We haven’t tested the theme on that version yet. Do you have a staging site where we can see this? Did you flush the permalink or reset the .htaccess file after the upgrade?
I checked the list of the soon to be deprecated functionalities but I didn’t find anything that would affect the theme aside from the “String search” changes, but I could be wrong.
// https://wiki.php.net/rfc/deprecations_php_7_3
Best regards,
Ismael
I tried to figure it out and it looks like it works at first but the actual search results do not reflect the change. I copied functions-enfold.php to my child theme and changed the following lines
$items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown menu-item-avia-special">
<a href="shop/?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a>
</li>';
to
$items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown menu-item-avia-special">
<a href="shop/?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a>
</li>';
-
This reply was modified 7 years, 3 months ago by
hotspot01. Reason: update
Results from a security scan on our Enfold site returned security vulnerability issues related to the version of jquery being used by Enfold.
Is there a way to remove jquery version 1.12.4 and replace it with jquery version 3.0 or higher?
Here are the results from the scan:
Details:
jQuery versions on or above 1.4.0 and below 1.12.0 (version 1.12.3 and above but below 3.0.0-beta1 as well) are vulnerable to XSS via 3rd party text/javascript responses(3rd party CORS request may execute). (https://github.com/jquery/jquery/issues/2432).
Solution: jQuery version 3.0.0 has been released to address the issue (http://blog.jquery.com/2016/01/08/jquery-2-2-and-1-12-released/). Please refer to vendor documentation (https://blog.jquery.com/) for the latest security updates.
———————————————-
In jQuery versions on or above 1.12.2 and below 2.2.0 $.parseHTML has (lots of) XSS. In these versions parseHTML() executes scripts in event handlers. Please refer following resource for more details: https://bugs.jquery.com/ticket/11974, http://research.insecurelabs.org/jquery/test/