wordart88
Forum Replies Created
-
Hi!
That didn’t answer my question. It seems like I need to block some of my site’s server-side cookies with custom PHP code with this as a basis: https://www.cookieyes.com/documentation/handle-the-server-side-cookies/
But with that in place, I assume I still need to know what the script URL pattern needs to be for cookies like these that are not loaded from an external JS-script but from something like https://my-root-domain.com ?I have tested this with the theme Twenty Twenty-Four activated instead of the Understrap child theme I’m using, and if anything that made the issue even worse.
Thank you, that worked! If someone else is looking for this, I used this filter for the Facebook image:
function aioseo_filter_og_image( $facebookMeta ) { if( get_field('socialgraph_image') ){ $facebookMeta['og:image'] = get_field('socialgraph_image'); } return $facebookMeta; } add_filter( 'aioseo_facebook_tags', 'aioseo_filter_og_image' );
Ah, updating the plugin solved it for me too- thanks!
I have the same issue on a client’s WooCommerce store.
Breadcrumbs for product, product categories etc works but on a child page using page.php template, the parent page is not in the breadcrumb trail.I found this issue by Googling the same string I got in my site’s URL. In my case it was caused by the setting “Geolocate (with page caching support)” in WooCommerce General settings and it disappeared when I changed to just Geolocate.
Forum: Plugins
In reply to: [Autoptimize] WP Emoji not covered in optimizationHi Frank,
Ah I thought it looked like inline for the emoji scripts in the WP core code. I found a plugin to deactivate them all together so that is also an option.I didn’t know I could write in the file paths like that, great- just what I needed!
OK! I have changed the text in the plugin code itself and it seems to do the trick. Sounds great about a fix for an upcoming release, I guess you could add them as fields like for the buttons etc.
I tried to use jQuery to change with .html() or .text() for the validation fields and also tried to override the data-parsley-required-message attribute without no luck.
I noticed now I have the same issue for the date field, also being in English. I searched through the plugin’s source code and I found out that these values are set in class-stripe-checkout-shortcodes.php:
row 582:
$html .= ( ( $required === 'true') ? 'required' : '' ) . ' data-parsley-required-message="Please select a date.">';
row 796:
$html .= 'required data-parsley-required-message="Please enter an amount." ';
and this on row 175 in public-main.js:
.text('Please wait...');
Since I don’t want to edit directly in the plugin code, is there a way to translate these fields by using hooks, or do you have any suggestion for how to override them with jQuery etc?
– The “please” wait message appears as text in the submit button of the plugin form when the user has submitted their credit card info in the Stripe checkout modal. Before the button text is correctly in Swedish as set in the plugin settings.
– Yes, “Please enter amount” appears as Parsley validation text when data in a stripe_amount field is left empty by the user. Maybe it can be changed with some custom jQuery?
Hi Nick, Sorry it’s not officially published yet so I can’t show the site. But here’s how the code looks:
Amount field Shortcode:
[stripe_amount label="Valfritt st?dbelopp:" id="foretag_engangsgava_stodbelopp" required="true"]
Amount field code generated in Chrome:
<input type="text" class="sc-form-control sc-uea-custom-amount parsley-error" name="sc_uea_custom_amount" id="sc_uea_custom_amount_1" value="" placeholder="" required="" data-parsley-required-message="Please enter an amount." data-parsley-type="number" data-parsley-type-message="Please enter a valid amount. Do not include a currency symbol." data-parsley-min="0.5" data-parsley-min-message="Please enter an amount equal to or more than 0.5 SEK." data-parsley-errors-container="#sc_uea_custom_amount_errors_1" data-parsley-id="4134">
Submit button code generated in Chrome before field is filled in:
<button class="sc-payment-btn"><span>DONERA</span></button>
Can you see something based on that?