carryoncoding
Forum Replies Created
-
??
Please see the following gist. It includes a pieced-together version of the correct code, followed by a copy of the corrupted code.
https://gist.github.com/Phil-Avalon/115ef24d086d6f5929f5b92d095d8b42
Thanks. The code is now corrupted but I can extract it from an earlier, successful email.
What mechanism do you mean by “via a link”?
Cheers,
Phil.Many thanks.
Phil.Hi,
Thanks for all your help with this. I thought it might be useful for future readers to show how this was resolved. We spent quite some time trying to use the approach described above.include a <style></style> HTML attribute towards the top of your email notification when using the Text part of the Editor on your notification. Something like this inside may work: a[url^="url/wp-admin/comment.php?"] { /*button styles go here */ }
This is the most elegant approach, but sadly we were unable to get it to work. When the email is received, a number of clients fail to pick up on the a[…] in the style definition, and the buttons are not created.
Instead, we went with
<style> .email-button { padding: 8px 12px; border: 1px solid #C2a332; border-radius: 4px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; color: #C2a332; text-decoration: none; font-weight:bold; display: inline-block; } table, td, div, h1, p {font-family: Arial, sans-serif;} </style>
Then in the body of the e-mail:
<td style="width:33%;padding:0px 5px 10px 5px;vertical-align:top;"> <div class="email-button">[comment_moderation_approve]</div> </td>
This expanded the shortcode and created the link in a button.
Always happy to improve this further, so any suggestions for improvemet are welcome.
Thanks,
Phil.Very many thanks for these useful links.
PhilHi, I’ve been trying to get this approach to work and still no joy. Have you had any success elsewhere with styling the shortcode as a button? The idiosyncracies of the various email clients seem to play a factor.
Thanks for any help.
Phil.Many thanks.
I thought it wasn’t permitted to separate out the <style> definitions like this in emails, and it was necessary to use inline style definitions. I’ll give that a try.
Cheers,
Phil.Forum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Duplicate header and footer.Hi Hannes, sorry for the delay.
1. Tried it with and without the custom template file. I couldn’t see any indication in the template file for duplicating the header and footer.
2. No custom PHP code.
3. No. Preview at Dashboard > Settings > Email template looks great!
4. Tried with and without. No change.
It is as if the message is being processed twice. After the first time the header and footer is added. Then the resulting message is processed again and a further header and footer is added.
Kind regards,
Phil.Forum: Plugins
In reply to: [Email Template Designer - WP HTML Mail] Duplicate header and footer.Thanks, Hannes.
Same header and same footer twice. The problem occurs in emails for both CF7 and woocommerce.I tried changing the header in the editor and both headings changed in the emails.
Kind regards,
Phil.Forum: Fixing WordPress
In reply to: Category-based back-end prevent page edit/delete by AdminOk, thanks Steve. I feared this might be the case. I’ll suggest using an “Editor” login for these tasks and save the “Admin” login for site admin.
Thanks for your help,
Phil.Thanks Jory – good spot – that’s exactly what it is.
The plugin “Black Studio TinyMCE Widget” was installed to add a visual editor to widgets. Of course, it is now redundant with Gutenberg “Block widgets”.
Interesting that the fault it created should result in precisely the opposite behaviour!
Many thanks,
Phil.Forum: Fixing WordPress
In reply to: Member pages (not sub-sites)Very many thanks. I have been considering Formidable Forms and that aligns with your suggestion to use custom fields. It might also cover off the facilities provided by a membership plugin. I’ll have a look through the links you provided and see where that gets me.
Thanks again.
Forum: Plugins
In reply to: [Memphis Documents Library] mDocs conflict with modal windowsAnything?
Forum: Plugins
In reply to: [Memphis Documents Library] mDocs conflict with modal windowsHi, just checking in to see if you have had any joy with this?
Cheers,
Phil.