Fzn.shaikh
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Compatiblity with Swift performance or any caching pluginDone,
Also, can you please clear the cache of Swift performance plugin after Autoptimize cache is cleared? Due to this, there were 404 issues.
This snippet is what works for me.function clear_swift_page_cache(){ if (class_exists('Swift_Performance_Cache')){ Swift_Performance_Cache::clear_all_cache(); } } add_action( 'autoptimize_action_cachepurged', 'clear_swift_page_cache', 999 );
Forum: Plugins
In reply to: [Autoptimize] Compatiblity with Swift performance or any caching pluginYou are so fast! I found the solution while Googling. Sorry to bother you.
Appreciate it!hey Gijo,
Here are the script tagsfbevents.js
analytics.js
adsbygoogle.js
OneSignalSDK.jsIt seems like now GTmetrix does not load those scripts.
I am using Swift performance pro, Autoptimize & flying scripts.
It seems like at times Swift created cache without flying script working(at least according to GTmetrix, or maybe gtmetrix was caching the results)
Thanks for you time!
I respect you for your work.- This reply was modified 4 years, 3 months ago by Fzn.shaikh.
Forum: Themes and Templates
In reply to: [Astra] Set custom layout for different post typesI actually need it because I don’t want to individually modify every CPT(there are multiple). And if I use global option, then unexpected then I have to do it manually for posts which I don’t want to have a global settings.
I’m sure there should be a snippet. If you provide an example, I’ll take care of my requirements. On the Astra facebook group someone else needed the same so he said to contact support so I’m sure there’s a snippet which will save time.Forum: Themes and Templates
In reply to: [Astra] Set custom layout for different post typesThere should be code snippet, right?
That’s great! Do you have any approx ETA?
Forum: Plugins
In reply to: [Autoptimize] Get per page critical CSS from custom fieldI’m not sure where to place the logging code into the snippet.
The issue is, I saw some css files loaded on multiple pages, even though I’ve added different critical css for different pages.
Is that normal?Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Can we sort the books by date?Thank you. That fixed the issue.
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Can we sort the books by date?Hello!
I want to sort the books on the front end(where users can see) not in admin.Forum: Plugins
In reply to: [Simple Basic Contact Form] Can we save the messages in dashboard?Thankyou so much!
It’s bad to talk in a manner to a developer who you aren’t paying anything nor are you contributing. You should respect the time of others and see plugin FAQs BEFORE complaining. It’s not a premium/Saas product.
Jazakallah. Worked perfectly bro. Here’s how I added.
add_filter( 'woocommerce_checkout_fields' , 'hjs_wc_checkout_fields' ); function hjs_wc_checkout_fields( $fields ) { $fields['account']['account_username']['label'] = 'Custom Text'; $fields['account']['account_password']['label'] = 'Custom Text'; $fields['account']['account_username']['placeholder'] = 'Custom Text'; $fields['account']['account_password']['placeholder'] = 'Custom Text'; return $fields; }
Also, I want to modify the text in the fields when a user is asked to create an account while checking out. Thanks
Account username
Username
Account password
PasswordHey,
jazakallah for your reply.
I added
add_filter( ‘woocommerce_checkout_fields’ , ‘hjs_wc_checkout_fields’ );
function hjs_wc_checkout_fields( $fields ) {$fields[‘account_username’]= ‘Select A State’;
return $fields;
}
to see if anything happens. But no changes.
I saw the page https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/ But I could not understand how to use it.Forum: Plugins
In reply to: [WooCommerce] Change Default Order Status for Cash on DeliveryAs the topic you created is exactly what I need. You didn’t get any response. Should I make another one?