John Webber
Forum Replies Created
-
Hi @dvankooten
Worked great. Thank you so much!
Forum: Plugins
In reply to: [VS Contact Form] After an error, the input text is permanently redThank you for your hard work, and support
John
Forum: Plugins
In reply to: [VS Contact Form] After an error, the input text is permanently redHi Guido,
The error label and the input has the same class ‘vscf-error’. Just remove the class from the inputs.
Here is the rule:
#vscf .vscf-error {
border-color: #ff0000;
color: #ff0000;
font-size: 0.9em;
}This is what I wrote to override it:
#vscf :is(input, textarea).vscf-error {
color: inherit;
}There are CSS only ways for form validation and instruction pop-ups as the user is typing.
You can find it on YouTube.
But in this case, removing the class solves it.John
Forum: Plugins
In reply to: [Gutenberg] Straight single quotes are replaced by a smart (curly) quotesExcellent!
Thank you for the link @janmtm, and helping me solve this problem.
I just added this to functions.php in my child theme:
// To disable entirely the curly quote replacement throughout the site
add_filter(‘run_wptexturize’, ‘__return_false’);Forum: Plugins
In reply to: [Gutenberg] Straight single quotes are replaced by a smart (curly) quotesHi @janmtm
Yes, I did share the screenshots. Not sure what happened to them. So, I made some new ones.
The text in the editor with the correct single quote.

The text in on the frontend has a different quote, a symbol which my font does not have.

The source code:
Left side — Editor
Right side — Frontend
Thank you for looking into this 👍😊
Hi nosilver4u,
You’re right. All your points are valid. I understand completely.
Thank you for responding so quickly, and with such a thorough answer.
Have a great day!
Forum: Plugins
In reply to: [VS Contact Form] Please allow a better auto-response messageThank you Guido!
Looking forward to the block
Jovan
Forum: Plugins
In reply to: [VS Contact Form] Please allow a better auto-response messageHi,
Oh, right, one email is the conformation for the sender, and the other for the admin.
You, know what would be great, also? A checkbox for the user to consent to getting the newsletter. Then the plugin would collect the user’s email and name in a list, that the admin would copy/paste to the mailing list.
Having them fill out the contact form, the newsletter form, and maybe even the ordering form, is asking for too much
Think about it. Would be amazing
Thank you
JohnForum: Plugins
In reply to: [VS Contact Form] Please allow a better auto-response messageHi Guido,
Thank you for updating the plugin. The text area is working as expected.
But, there are some unexpected quirks.1) Two conformation emails are sent:
One that contains the message and what the user wrote:
And another one that contains only what the user wrote:

Here you can see that I got two emails at the same time

2) The conformation message on the page is not wrapped in the existing class

So, my styling for ‘vscf-info’ was not applied to the conformation message.
John
Forum: Plugins
In reply to: [VS Contact Form] Please allow a better auto-response messageThank you Guido
Really appreciate thatJohn
I remembered one more thing, and may add more if I think of any…
- The code editor needs a JS library that notifies me of incorrect PHP and JS syntax
Forum: Plugins
In reply to: [Breeze Cache] Programmatically clear cache by post IDDoes the cache of that single post get purged if you edit, or just save it?
Forum: Plugins
In reply to: [Breeze Cache] Page cache does not seem to workDid you find a solution?
- This reply was modified 2 years, 3 months ago by John Webber.
Forum: Plugins
In reply to: [Breeze Cache] Programmatically clear cache by post IDDid you find a solution?
- This reply was modified 2 years, 3 months ago by John Webber.
Forum: Plugins
In reply to: [WP Super Cache] Prevent Caching On First OpenHi @donncha, @tamirat22
I guess I missed the email about your response.
My initial question was not what I actually need. I’m lookin to not cache only the page we are on, on first open. I did find a solution that works with most plugins.
Tested it with your plugin. Works well.
Thank you!
add_action('send_headers', 'combined_cache_control'); function combined_cache_control() { global $post; // Check if we are on a post page and the post has a cache prevention flag if (is_a($post, 'WP_Post')) { $prevent_cache = get_post_meta($post->ID, '_prevent_cache', true); if ($prevent_cache) { // Send headers to prevent caching header("Cache-Control: no-cache, must-revalidate, max-age=0"); header("Pragma: no-cache"); header("Expires: Wed, 11 Jan 1984 05:00:00 GMT"); // Also prevent caching using WordPress constants if available if (!defined('DONOTCACHEPAGE')) { define('DONOTCACHEPAGE', true); } } } } add_action('save_post', 'set_prevent_cache_flag'); function set_prevent_cache_flag($post_id) { // Set the flag when a post is saved update_post_meta($post_id, '_prevent_cache', '1'); }- This reply was modified 2 years, 4 months ago by John Webber.