Forum Replies Created
-
AuthorPosts
-
July 18, 2022 at 7:34 pm in reply to: How can I resize font of the heading row and default row in a table? #1358684
Hi,
Glad that this helped, but I don’t understand your new question, the screen sizes for
default, medium, small and very small
are explained in the context of the option page, above the red arrow in the screenshot.Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeJuly 18, 2022 at 7:28 pm in reply to: Show product category description even when there is no products #1358680Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeJuly 18, 2022 at 12:51 am in reply to: How to set up an Under Construction / Coming Soon Page? #1358633Hey gb,
Please see our documentation here: Coming soon page
right below it on the same page is the Maintenance mode documentation, please review and let us know if you have further questions.Best regards,
MikeJuly 18, 2022 at 12:45 am in reply to: Show product category description even when there is no products #1358632July 17, 2022 at 11:36 pm in reply to: Show product category description even when there is no products #1358628Hi,
Thank you for the login, I’m not sure why this was not working on your site, but I did notice that your category page was different than my default version, probably due to one of your plugins.
Anyways I adjusted my approach with a new function in your PHP snippets plugin, I left the old one disabled and you can delete it.
So the first improvement for this one is that it checks the category page for the ID “search-fail” which is only found on empty category pages, if found it injects the shortcode that gets the category description, so you don’t need to add the shortcode on the pages and then remove it once you add products to the category later.
But you need to add your html table without line breaks, you will see what I mean when you check the back end of the two pages I adjusted for you:
https://diyjewellery.com/bails/bails-attached/bails-attached-gold/
https://diyjewellery.com/bails/bails-glue-on/bails-glue-on-gold/
Also note that for these two page you didn’t add an image url justimg src="#"so no images are showing in the table right now.

This is the function I addedfunction archive_description_callback() { $term_object = get_queried_object(); $archive_description = $term_object->description; echo '<div class="container archive-description">'.$archive_description.'</div>'; return $output; } add_shortcode( 'archive_description_shortcode', 'archive_description_callback' ); function add_archive_description_shortcode() { ?> <script> (function($){ var short_code = '<?php echo do_shortcode("[archive_description_shortcode]"); ?>'; if ($('#top.archive.tax-product_cat .entry-content-wrapper').attr("id") == "search-fail") { $(short_code).insertBefore( ".container_wrap_first" ); } })(jQuery); </script> <?php } add_action('wp_footer', 'add_archive_description_shortcode');Best regards,
MikeHey roosites,
Thank you for your question.
Please see the Custom Elements (Custom Element Templates – CET) in the theme options.
Please check our documentation for more details. Advanced Users can have more options.Best regards,
MikeHey Rebecca,
Thanks for the login to your site, what web host are you using?
I see in your WordPress ▸ Dashboard ▸ Tools ▸ Site Health ▸ Info ▸ Server you have a negative number: Max input time -1, typically this is set to a positive 180.

Please ask your web host to change the Max input time to 180.
After correcting this server issue try importing the demo again.
If this still doesn’t work then try the manual import as in our documentationBest regards,
MikeJuly 17, 2022 at 8:55 pm in reply to: Show product category description even when there is no products #1358619Hi,
Yes, I understand that your page is not showing the custom table at the top of your empty category page.
The table that I copied was from a non-empty category page that is showing a table that I assume is similar to what should show on your empty category page
https://diyjewellery.com/bails/bails-attached/bails-attached-gold/
It is only an example, since I can not log in to your site a see the actual backend of your empty category page, I have to guess what the expected result is.
Please include an admin login in the Private Content area so I can examine your page closer.Best regards,
MikeHi,
Glad to hear that you also noticed the “powered by Tiny” text on the “weird” editor, there must be something on your site adding this “weird” editor because it is not in any element on my clean Enfold install.
From past experience, I have only seen this with the TinyMCE Advance plugin.
Try creating a test sub-domain with a fresh WordPress & Enfold install and see if this “weird” editor is found there.Best regards,
MikeJuly 17, 2022 at 8:23 pm in reply to: Show product category description even when there is no products #1358616Hi,
Thanks for the feedback, I tested my first solution again on my test site and achieve this:

I wanted to check that I didn’t leave a step out, so please include an admin login in the Private Content area so I can examine your site closer.Have you removed the custom archive-product.php template in your child theme, from the original solution above, as this is not a factor of the shortcode solution?
Also is the woocommerce/templates/archive-product.php file from the original solution above, in it’s original state, without any modifications?Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Thanks for the link to your site, I see that you have this css:#top .av-submenu-container.av-sticky-submenu { z-index: 2; }unfortunately it needs the !important; to work so please change to:
#top .av-submenu-container.av-sticky-submenu { z-index: 2 !important; }we will need to apply z-index to the flex column that has the video link because it becomes the parent of the modal, and we also need to apply z-index to the container after the submenu for the modal to be on top of it, so please try this css:
.flex_column.avia-builder-el-2 { z-index: 2; position: relative; } .template-page.content { z-index: 3; position: relative; } #top .av-submenu-container.av-sticky-submenu { z-index: 2 !important; }please note the first css rule is
.flex_column.avia-builder-el-2but it would be better if you added a custom class to the column that has the video link, but this should work for now so you can test. I’m not sure if the z-index for the container after the submenu will be an issue for other pages, so please check and if it is we can adjust the classes. Are you going to use this over your whole site or just a couple of pages, the more we can limit it to certain pages the less it could cause issues on pages where it is not needed.
After applying the css, please clear your browser cache and check.
Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Thanks for the screenshot, but it gives a “hotlink” error, you probably have hotlink protection set on your server.

In the future please try using a Screenshot service and pasting the image URL in your post.
As for your reCaptcha I don’t need to accept cookies to send your form, here I fill it in:

then I clicked the reCaptcha, it spun and gave me a green check and then hid, which is the correct behavior, so I didn’t get a screenshot of that, and then I sent the form and you see that I have the success message without accepting cookies.

But from your last message I get the impression that you were getting a lot of spam, and this is the root of your issue, generally there are services that spammers use to beat Google reCaptcha, if these spammers has your site on their list then I would recommend using Contact Form 7 with Honeypot for Contact Form 7 and Blackhole for Bad Bots
Best regards,
MikeJuly 16, 2022 at 11:43 pm in reply to: Show product category description even when there is no products #1358592Hi,
Thanks for your patience, as I understand your request you have added a html table to your category Description and you want it to show when there are no products in that category, I was not able to get the above solution to work on my test site, but I was able to create a shortcode that you can add to empty categories to show your custom description:

Try adding this code to the end of your functions.php file in Appearance ▸ Editor:function archive_description_callback() { $term_object = get_queried_object(); $archive_description = $term_object->description; echo '<div class="container archive-description">'.$archive_description.'</div>'; return $output; } add_shortcode( 'archive_description_shortcode', 'archive_description_callback' ); function remove_archive_description_shortcode() { ?> <script> (function($){ $('.archive-description').contents().filter(function() { return this.nodeType == 3 }).each(function(){ this.textContent = this.textContent.replace('[archive_description_shortcode]',''); }); })(jQuery); </script> <?php } add_action('wp_footer', 'remove_archive_description_shortcode');and add this shortcode to the category Description
[archive_description_shortcode]
and this is the result:

Perhaps this will help.As a side note I had originally thought that you wanted to show the category full width banner, and I found that this shows without and modifications:

the results:

In the process I stumbled on to this solution for just showing the category image without the description when using the default Category Styling and not the full width banner:

use this shortcode:[banner_image_shortcode]
This code to the end of your functions.php file in Appearance ▸ Editor:function banner_image_callback() { ob_start(); avia_woocommerce_overview_banner_image(); $banner_image = ob_get_clean(); echo '<div class="container">'.$banner_image.'</div>'; return $output; } add_shortcode( 'banner_image_shortcode', 'banner_image_callback' );Best regards,
MikeHi,
Thanks for the feedback, I checked your contact page with the Google reCaptcha and the form sent my test message successfully without an error, did you already solve this?Best regards,
MikeHey cdubose574,
Thanks for the link to your site, but it is redirecting to a bot check and it won’t let me pass, please disable this.
Also, include an admin login so we can investigate the element better.Best regards,
MikeJuly 16, 2022 at 7:47 pm in reply to: prevent title attributes from getting changed to sentence case #1358586Hi,
Glad we were able to help, and thanks for sharing the solution, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Thank you for the link to your site, our documentation offers some tips on styling the subtext here: Main menu sub-text
Since your menu items are a little slimmer I adjusted the css a little, please try this in your Quick CSS:#top #header #avia-menu li.menu-item a > .avia-menu-subtext{ display: flex; margin-top: -35px; color: #808080; font-size: 12px; font-weight: lighter; }After applying the css, please clear your browser cache and check.
Best regards,
MikeHey smudgedesign,
Thank you for your patience, the thread from 2015 that you linked to about the Portfolio Grid doesn’t actually have a solution, the Moderator is pointing out the code block that would need to be edited without advising the specific changes. I found in my test that no change is nessary to achieve what you are looking for if you use the Portfolio Grid.
I created a test page with a Portfolio Grid element and with a square “cropped” image the element shows the image square with the title below:

please note that the image is 349×349 square, with the title it’s 349×403

The key to choosing your images is ensuring that the thumbnails are “cropped”, if you use the Simple Image Sizes plugin you will see which ones are actually cropped square, for example while the “medium” image is 300×300 it is not cropped so it shows as 349×249 if the uploaded image is landscape instead of square, compared to the “woocommerce_thumbnail” which is 300×300 and cropped and produce the square images in the screenshots above.
Now one point, the thread from 2015 that you linked to about the Portfolio Grid, often referred to as the Masonry Portfolio, because it has many of the same features as the Masonry element, so please try the Portfolio Grid element.Best regards,
MikeJuly 16, 2022 at 4:27 pm in reply to: E_ERROR caused in line 17 of file /wp-content/themes/enfold/searchform.php #1358579Hi,
Thanks for your patience, did you receive this email alert only once? You said that everything seems to be working correctly on the front and back end, is this still the case?
Perhaps this was a one-off error with the WP Cerber Security as Ismael pointed out.
It should not try to access the searchform.php via the error404.php file, but if this happens again check the plugin options to see if you can disable this file from being scanned.Best regards,
MikeHey Daviddjh,
Thanks for the link to your site, but it sounds like the first error you post about only occurs in the backend, so please include an admin login in the Private Content area and a test page/order we can try on and a screencast of the steps to create the error so we can try.
My question is did this used to work and then suddenly not work? Perhaps a new plugin (MyWorks) was added and now you see the error?
have you tried disabling your plugins to see if the error is resolved?Let’s look at one issue at a time, but is this the MyWorks plugin you are referring to?
Best regards,
MikeHi,
Thanks for the login to your site, on your /service-center/ page in your screenshot above I found that the wrong color showing (a bright blue) was the default browser user agent color, so no setting seemed to be applied from the Enfold Theme Options ▸ Advanced Styling
When I added the color and font size to your child theme stylesheet in your current.av-main-nav > li > arule:.av-main-nav > li > a { line-height: 35px!important; height: 35px!important; color: #00315c; font-size: 17px; }it worked correctly, so this points to your child theme stylesheet working but not the theme Enfold Theme Options ▸ Advanced Styling
I see in your WordPress ▸ Dashboard ▸ Tools ▸ Site Health ▸ Info ▸ Server both of your PHP memory limit & Max input time are negative values:

typically I would expect to see positive values:

So from your post above it sounds like everything was working fine until recently, so did you just update to PHP v8, if so it looks like the PHP setting are not the same for your previously PHP version, probably 7.4 and the new v8 on your server, try going back to v7.4 to test, and if that works try adjusting them to match.
If you didn’t change the PHP version since the error, then did you make any changes with the better search replace plugin and then noticed the error? This plugin is very powerful and can make serious unexpected changes, and has no fall back option.
If this is true, do you have a pre plugin server backup? You might need to use it to correct, I’m not sure.
If you don’t have a backup then you could add the css needed to correct your menu in your child theme stylesheet and not rely on the Enfold Theme Options ▸ Advanced Styling options.
I have not seen a case of the Advanced Styling not working and I don’t see any related errors?Best regards,
MikeHi,
Thanks for the login to your site, what web host are you using?
I see in your WordPress ▸ Dashboard ▸ Tools ▸ Site Health ▸ Info ▸ Server you have a negative number: Max input time -1, typically this is set to a positive 180.

This makes me think that you are using OVH hosting which disables the PHP set_time_limit() function on their sites. If you are not using OVH hosting please ask your web host to change the Max input time to 180.
I also note that it looks like your web host is deferring the javascript loading before the theme, because the javascript options are not showing in the Enfold Theme Options ▸ Performance ▸ Change WordPress Defaults, these are the options you have:

this is what you should see:

Please ask your web host to enable the WordPress defaults for jQuery.
After correcting these two server issues try importing the demo again.
If this still doesn’t work then try the manual import as in our documentationBest regards,
MikeHi,
Thanks for your question, in order to make your heading rows span across multiple columns the table would use the colspan attribute, unfortunately, the Enfold table element doesn’t offer this feature and considering that you are also looking for advanced fixed columns and rows when scrolling I would recommend looking for a table plugin that offers these features.
I did find a stackoverflow example: Set colspan dynamically with jQuery to use as a base to try this with our table element, but please note that it will not work for the mobile table view.
The script works by removing the empty cells and adding the colspan attribute to the first cell with text, also the very first cell is ignored.

the result:

If you want to try this add this code to the end of your child theme functions.php file in Appearance ▸ Editor:function custom_colspan_script() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $('#colspantest .avia-heading-row').each(function() { var tr = this; var counter = 0; var strLookupText = ''; $('th', tr).each(function(index, value) { var th = jQuery(this); if ((th.text() == strLookupText) || (th.text() == "")) { counter++; th.prev().attr('colSpan', '' + parseInt(counter + 1,10) + '').css({textAlign : 'center'}); th.remove(); } else { counter = 0; } strLookupText = th.text(); }); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'custom_colspan_script');and add the custom ID colspantest to the table element
Best regards,
MikeHi,
Glad to hear that you have this sorted out, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeJuly 16, 2022 at 12:20 am in reply to: prevent title attributes from getting changed to sentence case #1358561Hey sky19er,
Thank you for your question, I did a quick test for the gallery element, and when I add “PhD” to a image title in the media library it doesn’t seem to change the case in the image title:

the results:

I also tested editing the attachment details in the gallery element:

and the results:

so I don’t think that WordPress or Enfold are changing the case by default, perhaps it another script or plugin?
Is this how you are adding the titles?Best regards,
Mike -
AuthorPosts




