Forum Replies Created
-
AuthorPosts
-
Hi,
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,
Thank you for your patience, I set the function above back to the original code from the documentation and then added a custom searchform.php file to your child theme with this:<?php if( ! defined( 'ABSPATH' ) ) { exit; } global $avia_config; // Modify the search parameters for custom search URL $search_params = apply_filters('avf_frontend_search_form_param', array( 'placeholder' => __('Search', 'avia_framework'), 'search_id' => 'swps', // Changed from 's' to 'swps' 'form_action' => home_url('/') . '?swp_form%5Bform_id%5D=1', // Appended custom query string 'ajax_disable' => false )); $disable_ajax = $search_params['ajax_disable'] == false ? '' : 'av_disable_ajax_search'; $icon = av_icon_char('search'); $class = av_icon_class('search'); ?> <form action="<?php echo $search_params['form_action']; ?>" id="searchform" method="get" class="<?php echo $disable_ajax; ?>"> <div> <input type="submit" value="<?php echo $icon; ?>" id="searchsubmit" class="button <?php echo $class; ?>" /> <input type="text" id="s" name="<?php echo $search_params['search_id']; ?>" value="<?php echo esc_attr(get_search_query()); ?>" placeholder="<?php echo esc_attr($search_params['placeholder']); ?>" /> </div> </form>
now your ajax form “Show all results” link points to ?swp_form%5Bform_id%5D=1&swps=
and lands on your custom SearchWP results page:
Best regards,
MikeHey peterolle,
To remove the “Add to Cart” button that changes to “Read More” for products without a price and add the class single_button to the div avia_cart_buttons so the button is centered add this code to the end of your child theme functions.php file in Appearance ▸ Editor:add_action('woocommerce_before_shop_loop_item', 'start_custom_output_buffer', 9); function start_custom_output_buffer() { ob_start(); } add_action('woocommerce_after_shop_loop_item', 'modify_and_end_custom_output_buffer', 25); function modify_and_end_custom_output_buffer() { $output = ob_get_clean(); global $product; if ('' === $product->get_price()) { $output = str_replace("avia_cart_buttons", "avia_cart_buttons single_button", $output); } echo $output; } add_filter('woocommerce_loop_add_to_cart_link', 'custom_woocommerce_loop_add_to_cart_link', 10, 2); function custom_woocommerce_loop_add_to_cart_link($button, $product) { if ('' === $product->get_price()) { return ''; } return $button; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
This is the expected results:
Best regards,
MikeApril 27, 2024 at 3:40 pm in reply to: Video fallback image causing enormous performance issues on mobile devices. #1441060Hi,
In your opening post you write that your site lost some of it’s ranking, perhaps this is related to the Google helpful content updates, there was another on March 5.
I’m not a SEO expert, but I have heard a lot of people talking about this on podcasts, perhaps adding a “latest post” from your blog on your homepage and adding weekly “helpful” posts will help your ranking. See Google’s documentation on Creating helpful, reliable, people-first content and then try working with a content writer to create content like this each week for you to post on your site. Also try to use the name of your city and state often, as I understand Google is looking for “local” content. You might also want to post the content on YouTube as it may help a lot.
I checked your site on PageSpeed Insights and it scores well:
I don’t see any CORS errors.
minified without merging is a good setting with cloudflare, as it also merges and double merging sometimes causes errors. But you can try merge and compress and see if it works better, but if you see errors then switch back.
So you site looks good, I believe if you start adding “helpful” content weekly it will help you a lot.Best regards,
MikeApril 27, 2024 at 2:25 pm in reply to: Some content elements not getting translated or no showen #1441058Hey Oarchitecte,
Thank you for your patience, I checked you page in all three languages but all of the elements were the same, including the faq second, and the languages seemed correct. Perhaps you have now solved this?Best regards,
MikeHey,
Thanks for sharing, as you point out using the admin_head hook will make this work, but I believe that you wish to make a feature request, please use the Github Feature Request as it will be sent to the Dev Team directly for their review.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,
MikeHey ballindigital,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 767px) { .responsive table.shop_table td { display: table-cell; } .responsive .shop_table .product-quantity { display: table-cell; width: 100%; text-align: center; } #top .order_details .product-name li { margin: auto; padding: 0; border-right: none; } #top .order_details li { border-right: none; } #top table.shop_table td { padding: 5px; } }
Best regards,
MikeHi,
This css seems to easily solve the hover event:#top .template-single-blog .big-preview.single-big a { pointer-events: none; }
Best regards,
MikeApril 27, 2024 at 1:26 pm in reply to: What is the best plugin currently to make site multilingual with Enfold? #1441049Hi,
Glad Guenni007 could help, thank you Guenni007, I don’t have experience with WPML but it is the most popular choice, unless you have further questions, shall we close this thread then?Best regards,
MikeHi,
You can go to fontello: https://fontello.com/
and choose the ones you like to make your own pack.
You can also download some of the icons from our demos from our documentationBest regards,
MikeHey rixi,
Try changing if (is_page(1842)) to if (is_page(array( 1842, 1843 )))
and add as many page ID so you need.Best regards,
MikeHi,
Glad Rikard could 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,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#main a.avia-button { text-decoration: none; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeHi,
Glad Ismael could 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,
MikeHey rixi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#main .av-magazine .av-magazine-cats a { pointer-events: none; text-decoration: none; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeApril 26, 2024 at 4:52 pm in reply to: Events Calendar Plugin – German Version H1 Typo is back #1440992Hi,
I tried to review your previous thread, and the page posted doesn’t seem to show the error: Kalender mit Ereignissem
Kalender mit Ereignissen is the page H1 title.
It seems that the script solution is working correctly, is there a different page at you see the error on?Best regards,
MikeHey fkm,
Thanks for the screenshots and link to your site, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top .avia-image-diff-container { margin: 0; width: 100vw !important; position: relative !important; left: calc(-50vw + 50%) !important; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeApril 26, 2024 at 12:05 pm in reply to: Parallax Theme – top image not showing on mobile browsers in Safari and Firefox #1440944Hi,
Thank you for your patience, please try disabling Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression and disable any other caching plugins and enable Enfold Theme Options ▸ Performance ▸ Delete old CSS and JS files
Then clear your device cache, please note that iPhones can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.
If this doesn’t help please try adding this code to the end of your theme functions.php file in Appearance ▸ Editor:function custom_avf_post_css_create_file( $create ) { return false; } add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );
and clear your cache again.
If this doesn’t correct please include admin login in the Private Content area so we can investigate.
Also when you say that “Desktop environments” work fine, is that Mac or Windows, or both?Best regards,
MikeHi,
Yes, you don’t need to change the name og the child theme, but it should only have style.css & functions.php, no folders.Best regards,
MikeHi,
Thanks for the FTP access, but it opens a empty directory. Please ensure that the login has access to the root directory so we can access your functions.php file.Best regards,
MikeHi,
Without FTP access, and you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
then add the code from the solution and it should work.
If you can not add the plugin, and you don’t have FTP access or a child theme, then unfortunately you will not be able to make this customization.Best regards,
MikeHi,
Thanks for the screenshots, I see that you have a child theme that has many customized them files in it like header.php, footer.php, etc, these will very likely cause errors when you update. Please remove these and save them on your computer. Your child theme should only have style.css & functions.php
Once you have done this check that your site works correctly, without the customization, your functions.php may have functions that call your custom files and will need to be disabled for now.
Then you can update as I posted above, the you will need to figure out what your header.php & footer.php customizations were, these should be done in your child theme functions.php instead. We do not recommend adding these files to your child theme, it is the most common reason for errors when updating.
Then you will need to compare your other custom files like archive.php to the current theme file to ensure it still matches, basically all of your custom files need to match the current version and include your customization. This looks like it will ne a big job on your site as it looks like you have many customized files.
Perhaps you will want to create a staging site and update the staging site first so you will have time to work out all of the changes and your lave site will not be down for this time.
If you didn’t make these customizations you may want to contact your developer for assistance, as they will know what code snipptes to look for.Best regards,
MikeApril 24, 2024 at 12:41 pm in reply to: Two image blocks stack directly on top of each other on mobile #1440685Hey divinecurio,
Try following this solution.Best regards,
MikeApril 24, 2024 at 12:28 pm in reply to: Questions about Enfold – Responsive Multi-Purpose Theme #1440683Hey Robert Sink,
Thanks for your question, for products we recommend the WooCommerce plugin and it allows product variations.
To add custom fields to the checkout there are a few different plugins that you can use, while I don’t recommend any specific one and have not tested all of them, I tried the free Checkout Field Editor for WooCommerce and it allowed me to add a test field to my demo site. So I imagine the others will also work for you, you can try them and see which one works best for you.
Please note that we can’t ensure that all plugins will work with the theme, as there are tens of thousands of them, but typically I would expect that you will find a few that will work fine.Best regards,
MikeHi,
Please include FTP access so we can try some different parameters.Best regards,
MikeHi,
Downloading your site files will not be enough because you need to also backup your site database, this is where your site data, posts & pages, and your theme settings are stored.
Most webhosts have a backup feature, check with your webhost how you can backup your site & database, and how to restore it if you need to.
Once your are confident that you can restore a backup then go ahead and update your site.
Here is an easy way to update your site manually:
First download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue
then you will see the Theme updated successfully message.
Best regards,
MikeHi,
It looks like your plugin is not working correctly, I tried adding the shortcode to a code block element and a text block element on the page and it still gave the “Array” error:
so it seems the error is not related to the contact form, I have not used the plugin so perhaps there is a setting that you need to set, try checking with the plugin author.
I also tried adding shortcode to the Custom HTML element in the contact form using the shortcode wand:
and it worked correctly:
so it doesn’t seem that the error is related to the contact form not allowing shortcodes:
If this used to work then perhaps there is another plugin causing a confict, try disabling your other plugins and checking.
I notice in the plugin settings that there are many uses that require the Pro version, perhaps the error is related to that or that the API keys are not accepted? Try asking the plugin support if they have seen this before.Best regards,
MikeHi,
Try this example CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field to make the background color red, font white, and remove the border radius:#top #wrap_all .slideshow_inner_caption .avia-slideshow-button.avia-button { background-color: red; color: white; border-radius: 0; }
adjust to suit.
To make the button background color blue on hover add this css:#top #wrap_all .slideshow_inner_caption .avia-slideshow-button.avia-button:hover { background-color: blue; color: white; border-radius: 0; }
you can also change the font color and border radius on hover.
Best regards,
Mike -
AuthorPosts