Patrice
Forum Replies Created
-
@webtoffee
Thank you for your answer.
I know it is translated but this does not help me as it does not translate in the front end.Hello @webtoffee,
Thank you for your answer.Your suggestion do not work
I maintain WP with Firefox, so when I look at my site on Firefox, the site act like I’m logged in and my WP interface is in English.But I checked on Chrome, so I’m not logged and the Chrome default language is French but I still have what I pointed out in English.
SincerelyAlso [user_consent_state] is not translated and display, in french,
Your current state: Consent accepted. Manage your consent.- This reply was modified 4 years ago by Patrice.
Forum: Plugins
In reply to: [Contact Form 7 Syntax Highlighting] Do not work with WP 5.7I compare with your plugin installed in a earlier WP and the code is different
It is not working on my new and fresh site.
Hello,
Thank you for your answer
On my WP 4.9.15 I did uninstall, delete and reinstall but I still have
the button “Save & Accept”
Show more
Always enable
etc.
in English instead of FrenchOn my WP 5.6 it was a fresh install (new site) and the same behavior.
I confirm that the translation is in the cookie-law-info-fr_FR.po file, so is this a conflict with Polylang?
Or is it because the site is English by default?Sincerely
- This reply was modified 4 years ago by Patrice.
I could have access to the translation of Non-necessary after going to the y Non-necessary Cookie Settings and save it again
But the button Save and Accept is still not available for translation
Resolved
OK, I had miss-configured the plugin and the “send test email” helped.
I still have “Postman is not configured and is mimicking out-of-the-box WordPress email delivery.”
I found why I could not see the settings, it is Adblock Plus plugin on Firefox and other anti-advertising plugins……..
Forum: Plugins
In reply to: [Contact Form 7] Message do not keep line breakHello,
How do I keep mail.php from being updated from CF7 update?
I do not know how to override it in the function.php
Can anybody help me?
Thank youForum: Plugins
In reply to: [Contact Form 7] Message do not keep line breakThe reason why I had a big margin on top of my e-mail after doing the modification of mail.php was the base64 image included in the email contact form (in WordPress).
I did put the base64 image in the mail.php and it worked.
So for those that are interested, my code is, starting around line 80:
$header = apply_filters( 'wpcf7_mail_html_header', '<!doctype html> <html xmlns="https://www.w3.org/1999/xhtml"' . $lang_atts . '> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Vigier formulaire de contact</title> <style> body { background-color: black !important; color:#CCC; font-size:14px !important; padding:20px; min-height:400px; } h1 { margin-left: 40px; } </style> </head> <body contenteditable="true"> <!-- Début image --> <img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAMgAAAByCAYAAAAWCZ6NAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAA ATSvYpY5xWWqGHtW+SFjsijJsj9EeTmF7REBJU2X9H3WgP1m6C37dEXQwJp9OULoJWx EUww" alt="Vigier Guitars"> <!-- end image --> ', $this ); $footer = apply_filters( 'wpcf7_mail_html_footer', '</body> </html>', $this );
Forum: Plugins
In reply to: [Contact Form 7] Message do not keep line breakHello,
Can somebody help me override the mail.php in the functions.php ?
Thank you
PatriceForum: Plugins
In reply to: [Contact Form 7] Message do not keep line breakHello Takayuki,
Thank you again for your answer.
I try to override the mail.php function in functions.php but I do not have the knowledge to do it. So I did replace the function directly in mail.php, but I still have a margin problem, there are two line added before my message srart (with a logo)Do you have any idea why?
private function htmlize($body) { if ($this->locale) { $lang_atts = sprintf(' %s', wpcf7_format_atts(array( 'dir' => wpcf7_is_rtl($this->locale) ? 'rtl' : 'ltr', 'lang' => str_replace('_', '-', $this->locale), )) ); } else { $lang_atts = ''; } $header = apply_filters('wpcf7_mail_html_header', ' <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>' . esc_html($this->get('subject', true)) . '</title> <style> body { background-color: black !important; color:#CCC; font-size:14px !important; padding:20px; min-height:400px; } h1 { margin-left: 40px; } </style> </head> <body> ', $this); $footer = apply_filters('wpcf7_mail_html_footer', '</body> </html>', $this); $html = $header . wpautop($body) . $footer; return $html; }
Thank you in advance
Patrice- This reply was modified 4 years, 7 months ago by Patrice.
Forum: Plugins
In reply to: [Contact Form 7] Message do not keep line breakI try to leave the css on top but then margins are not good.