omahoung
Forum Replies Created
-
Thanks for the fast answer.
All my fonts are on https://fonts.gstatic.com (I am testing the home page) but the plugin add a preconnect to https://fonts.googleapis.com (that’s the reason of the PageSpeed Insights warning). Is this additional preconnect necessary?- This reply was modified 2 years, 10 months ago by omahoung.
I will use the filter. I hope this will not take too long time to get the fix.
Thanks.Hi,
Thanks for writing in the SGoptimizer forum, this has clarified the situation and made things change faster.
The file is indeed created by SGoptimizer. SiteGround developers will implement a fix on their plugin.
This ticket can be closed here.
Kind Regards.
According to SiteGround tests, both the files exist, bar.css.min.css being created when the user is logged in.
Here is their answer:
Most probably the support of All-In-One-SEO plugin have mistaken the file because both of them do exist on my end:
/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/css/admin-bar.654f4913.css
and
/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/css/aioseo/css/admin-bar.css.min.css
As you can see they are located under different folders. I am using the latest version of the plugin (4.1.10) as well. The second file is generated only when the frontend is accessed while the user is logged in.
I got an answer from All in one SEO:
The file that’s being looked up shouldn’t exist since the equivalent in 4.1.10 should be admin-bar.654f4913.css. So this seems to be a caching issue and there might be some very aggressive caching going on here (possibly OPCache).
So it looks normal that I don’t have this file.
Could you please check again from your side, this could be a cache problem.
Thanks.
Hello Shivamtyagi,
I have the version 4.1.10.I am not sure to understand your answers.
In a previous message you said:
“The path is not generated by our plugin”.And now you say:
“and then cleared the cache using the Purge SG Cache button. The problematic file was created”.Is this file created by the SG Optimizer plugin or not?
I have just downloaded the lite version (4.1.10) from the WordPress repository and there is no aioseo/css/admin-bar.css in the plugin zip file, same after installing on any website, this folder is not created.
Which version of All in one SEO do you have? Lite or pro?
I will ask to All in one about this file.
Regards.
Thanks for the fast answer.
The folders and files permissions looks normal (755 for folders, 644 for files). But anyway the problem is that this last part of this path doesn’t exists. The path exists until here:
/home/ilearningtutor/public_html/dev/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/css/
Inside this last css folder there are only files, no folders, so aioseo/css/admin-bar.css just doesn’t exists. I wonder where this path comes from… could it come from SG Optimizer?
Adding the filter you gave me solved the issue, thanks, but this doesn’t seem a very clean and definitive solution to me.
I have updated to the last version of All in one SEO, the problem is the same.
Kind Regards
Thanks for the fast answer. I did the test and it is working, the firewall rules are all active (except this “put”) and there is no anymore 403 error on PayPal auto return.
It is working but if someone save again the 5G/6G settings page (or if one day I forget) the fix will be deleted in the htaccess file. So, is it possible in a future version of the plugin to have an option to activate/deactivate this from the back-end?Forum: Plugins
In reply to: [WP CountUP JS] Compatibility with WordPress 5.8It works fine now, thank you for the fast update!
I have already downgraded.
In the previous version of the plugin it was possible to choose a level of optimization for the WebP pictures. This is not possible anymore. Less optimization control doesn’t look a good idea to me. Will you keep like that or will this option come back again in a future version?Edit:
I forgot to mention that after having downgraded to 5.9.7 the WebP pictures’ size is back to normal (around 30% smaller than the original).Great,
Thank you!Forum: Plugins
In reply to: [WooCommerce] Free shipping for variable productsHi,
Thanks for the fast answer and advice.
I could finally make it work. the problem was that for variable products, when a variation has no shipping class (or not existing class) Woocommerce takes the one defined in the generic “shipping” class tab (so, instead of the shipping class defined in the “variations” tab). That was my problem as I was setting the class id to ‘0’ which is a not existing class.
The solution was to create a new shipping class (zero) and set its cost to 0. Then use this code:
add_filter( 'woocommerce_before_calculate_totals', 'change_shipping_costs', 50, 1 ); function change_shipping_costs( $cart ) { if ( ( is_admin() && ! defined( 'DOING_AJAX' ) ) ) return; //Loop the cart items foreach( WC()->cart->get_cart() as $cart_item ){ if ( ...some conditions... ) { // The shipping class id must be set to the "zero" shipping class id $cart_item['data']->set_shipping_class_id(get_the_shipping_class_id('zero')); } } } // Get the shipping class id by slug function get_the_shipping_class_id( $slug ) { $shipping_class_term = get_term_by( 'slug', $slug, 'product_shipping_class' ); if ( $shipping_class_term ) { return $shipping_class_term->term_id; } else { return 0; } }
Hope this will help someone…
Bye.
Forum: Plugins
In reply to: [Transposh WordPress Translation] Translate Contact Form 7Hello,
I just had this problem and I actually still don’t know how to translate contact form 7, but I have found another way.
First I have created 2 forms (1 per language). Then in the child theme functions.php I have this code:
add_shortcode('form-lang', 'get_curr_form_lang'); function get_curr_form_lang() { $lang = transposh_utils::get_language_from_url($_SERVER["REQUEST_URI"], get_option("home") ); if ($lang == 'en') { // English form echo do_shortcode('[contact-form-7 id="4157" title="Contact Page Form EN"]'); } else { // Default site language form echo do_shortcode('[contact-form-7 id="1886" title="Contact Page Form"]'); } }
Then inside the page I need this form I simply add this shortcode:
[form-lang]
This is working for me. It is OK if you have few forms, but if you have a lot it is maybe better to find something else.