CreativeCaro
Forum Replies Created
-
@azaozz, thanks so much for your input. I’m still waiting to hear back from bluehost. If I ever find out, I’ll report back.
@azaozz, thanks for the reply. I’ve been in contact with the hosting (bluehost) and the case has escalated, but no reply from them yet as to what could be causing the problem. I kept troubleshooting on my own when I noticed that turning off Classic Editor enabled me to save the code in a post (but NOT in a custom field – so turning off Classic Editor did NOT fix the issue entirely.), so I figured I’d try to find other reports of similar occurrences, which led me here. It’s not javascript per se that is throwing the error because I can successfully create a “Hello World” alert. The embed code (SS/HTML/JS is quite long, so I have no idea if perhaps I’m hitting some sort of a limit with what can be saved in the database, but it would be weird for that limit to suddenly change. So I’m stumped (and waiting to hear back from bluehost). Perhaps it’s something in the latest release of 5.2 where they’ve increased the security of something or other. I tested downgrading to 4.9.8 and the issue remained (but perhaps some database changes stayed in place).
I am experiencing a similar issue. With the latest WP version and latest version Classic Editor, whenever I try to update a page that contains the embed code for my newsletter subscription (which is CSS/HTML/javascript and USED to work just fine), I get a 501 error. If I disable the Classic editor, then I can update pages with that newsletter code just fine. I’m not trying to modify the form code, just edit anything in the text/visual tab and I can’t preview or save my changes UNLESS I turn off the classic editor. I’m not sure what could be causing that.
Thanks for including that link that shows the snippet but I’m not sure HOW to modify it. For example, I ONLY want one specific admin user to receive all notifications. Here’s what I did but I have no idea if this is right. The (fake) email address where I want to send notifications is [email protected] in this example.
function my_admin_filter($recipients = array(), $email) { // $recipients is an array of admin email addresses // $email will be 'subscribe' or 'unsubscribe' if ($email == 'subscribe') { foreach ($recipients as $key => $email) { if ( $email != '[email protected]') { unset($recipients[$key]); } } $recipients[] = '[email protected]'; } else if ($email == 'unsubscribe') { foreach ($recipients as $key => $email) { if ( $email != '[email protected]') { unset($recipients[$key]); } } $recipients[] = '[email protected]'; } return $recipients; } add_filter('s2_admin_email', 'my_admin_filter', 10, 2);
Any help or pointers would be greatly appreciated.
- This reply was modified 5 years, 8 months ago by CreativeCaro.
Forum: Plugins
In reply to: [WP Visited Countries Reloaded] Several error messages on activationThanks, Jonas!
Forum: Plugins
In reply to: [WooCommerce] Remove related products WooCommerce 3.0.1Navigate to your theme folder (wp-content/themes/your-theme) and find the functions.php file. Add the following code to it:
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
Solution provided by https://gist.github.com/rynaldos/90196ab3750611f56997f7e40260deb0
It worked for me.
Forum: Plugins
In reply to: [Amazon Associates Link Builder] Geo-targeting ???Yes, I’d love to know this as well.
This is my Number 1 requirement for an Amazon plugin: geotargeting to redirect to most appropriate Amazon (.com, .ca, .co.uk, etc) so I can make affiliate commissions when possible.Please clarify if this plugin can redirect users to the appropriate Amazon store (assuming an affiliate account has already been created for each of the stores.)
Thanks,
CaroYou can overwrite this by modifying the functions.php file that is located within your theme.
This file can be accessed via Appearance ->Editor and look for Theme functions OR by FTP wp-content/themes/whatevertheme/functions.php
Add the following (but modify “[email protected]” and “Your Blog” to match what you want the display email address and ‘from’ field to show)
add_filter('wp_mail_from', 'new_mail_from'); add_filter('wp_mail_from_name', 'new_mail_from_name'); function new_mail_from($old) { return '[email protected]'; } function new_mail_from_name($old) { return 'Your Blog'; }