FreeFelix
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Editing Placeholder text in Country drop-downThank you for your replies
I finally got a function to work that worked, with some help from Stackflowadd_filter( ‘woocommerce_form_field_country’, ‘filter_form_field_country’, 10, 4 );
function filter_form_field_country( $field, $key, $args, $value ) {
// Only in checkout page for “billing” country field
if ( is_checkout() && ‘billing_country’ === $key ) {
$search = esc_html__( ‘Select a country / region…’, ‘woocommerce’ ); // String to search
$replace = esc_html__( ‘Select one option’, ‘woocommerce’ ); // Replacement string
$field = str_replace( $search, $replace, $field );
}
return $field;
}Forum: Plugins
In reply to: [WooCommerce] Editing Placeholder text in Country drop-downThanks again I tried the function solution before from suggestions on that link using:-
// Hook in
add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );// Our hooked in function – $fields is passed via the filter!
function custom_override_checkout_fields( $fields ) {
$fields[‘country’][‘billing_country’][‘placeholder’] = ‘My new placeholder’;return $fields;
}But couldn’t get it to work – maybe because the default display is not a placeholder but the zero item in an array of countries?
Would be the best option if could get to work as save remembering to manually update ??Forum: Plugins
In reply to: [WooCommerce] Editing Placeholder text in Country drop-downThanks I’ll check it out
Forum: Plugins
In reply to: [WooCommerce] Editing Placeholder text in Country drop-downJust to add to be ultra clear – currently says ‘Select country/region…’need to change to just ‘Select’
Forum: Plugins
In reply to: [WooCommerce] Conditional VAT chargingOK ta
Ah sorry didn’t realise this was for local installations searched and this came up
Anybody know where the answer might beThis is a live site
Hi I am getting the same when trying to upload a new image and when trying to install a new plugin from my desktop.
But the plugin installed fine from the WP server?
Folders are set to 755
Forum: Fixing WordPress
In reply to: Hack site?Thanks for this aeternal – looks very like darkleech from the article
Tried sucuri scanning and seems OK – but need to see what happens when offline for a bit
Forum: Fixing WordPress
In reply to: Hack site?Well done an full scan as suggested
Found a file that looked OK in the theme being used that I removed and a couple of files that were created by Duplicator in wp-snapshot folder that I removed.
Then rescanned and got a clean bill of health
we will see.
Any other steps apart from the huge list above ??
Forum: Fixing WordPress
In reply to: Hack site?Yes installed Wordfence – free edition – currently giving all clear
Just had to clear the code again ??
Any other suggestions re scanners
Forum: Fixing WordPress
In reply to: Fatal Error MessageDear Tara
Thanks for the reply, I have the site back ??
Went to the nav-menu.php, downloaded – scanned the the sites file with a clean install file using Visual Differ and found the offending code – deleted it and the site came backWent and installed Wordfence and scanned the system – and found as suspected the site had been hacked.
Cleaning the files now may have got in via xyznewsletter.
thanks for your help
Forum: Plugins
In reply to: [Appointments] Editing Confirmation emailHi Vinod
Thanks for this – funnily enough I thought the placeholder might be PHONE and tried that. Just need to get the client to test it?
The client is not actually using a paid for version of this – I mixed it up with another plugin they have ??
Forum: Plugins
In reply to: [Appointments] Editing Confirmation emailby the way using paid for version and WP 4.1