majidmajid0098 38 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 سلام به همه دوستان .این افزونه قاالب زیبا به ایمیل هایی که توسط وردپرس فرستاده میشه میده و باعث میشه زیباتر و بهتر بشه .دوستان این افزونه قالبش انگلیسیه و راست چین نیست من وقتم نداشتم واسه همین یکمی درست ترش کردم .فایل زیر رو ویرایش کنین : wp-content/plugins/wp-email-template/emails/email_header.htmlکد زیر رو داخلش بزارین : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="rtl" lang="fa"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><!--blog_name--></title><style type="text/css">/* Client-specific/Reset Styles */#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */body{direction: rtl;width:100%; /* Force Hotmail to display emails at full width */min-width:700px !important;-webkit-text-size-adjust:none; /* Prevent Webkit platforms from changing default text sizes. */margin:0;padding:0;}p { margin-bottom:1em; }img{border:none; font-size:14px; font-weight:bold; height:auto; line-height:100%; outline:none; text-decoration:none; text-transform:capitalize;}#backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}mark { background: transparent none; color: inherit; }/* Template Styles */body {background: #272727;direction: rtl;}#templateContainer{border: 1px solid /*background_colour*/;-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.1);-webkit-border-radius:6px;}h1, .h1,h2, .h2,h3, .h3,h4, .h4 {color: /*content_text_colour*/;display:block;font-family:/*content_font*/;font-size:34px;font-weight:bold;line-height:150%;margin-top:0;margin-right:0;margin-bottom:10px;margin-right:0;text-align:right;line-height: 1.5;font-style:/*content_text_style*/}h2, .h2{font-size:30px;}h3, .h3{font-size:26px;}h4, .h4{font-size:22px;}/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: HEADER /\/\/\/\/\/\/\/\/\/\ */#templateHeader{background-color: /*base_colour*/;background: -webkit-linear-gradient(/*base_colour_ligher*/, /*base_colour*/);border-bottom:0;-webkit-border-top-right-radius:6px;-webkit-border-top-right-radius:6px;}.headerContent{color: /*header_text_colour*/;padding:24px;vertical-align:middle;}.headerContent a:link, .headerContent a:visited{color: /*header_text_colour*/;font-weight:normal;text-decoration:underline;}/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: MAIN BODY /\/\/\/\/\/\/\/\/\/\ */#templateContainer, .bodyContent{background-color:/*content_background_colour*/;-webkit-border-radius:6px;}.bodyContent div{color: /*content_text_colour_lighter*/;font-family:/*content_font*/;font-size:14px;line-height:150%;text-align:right;}.bodyContent div a:link, .bodyContent div a:visited{color: /*content_link_colour*/;font-weight:normal;text-decoration:underline;}.bodyContent img{display:inline;height:auto;}/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: FOOTER /\/\/\/\/\/\/\/\/\/\ */#templateFooter{border-top:0;-webkit-border-radius:6px;}.footerContent div{color:/*content_text_colour_lighter*/;font-family:/*content_font*/;line-height:125%;text-align:right;}.footerContent div a:link, .footerContent div a:visited{color: /*content_link_colour*/;font-weight:normal;text-decoration:underline;}.footerContent img{display:inline;}#credit {border:0;color:/*content_text_colour_lighter*/;font-family:/*content_font*/;font-size:12px;line-height:125%;text-align:center;}</style></head><body rightmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"><div style="background: #272727;"> <!--EMAIL_TEMPLATE_NOTICE--> <center style="padding: 20px 0 50px 0;"> <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable"> <tr> <td align="center" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="600" class="contenttable" id=""> <tr> <td align="right" valign="top"> <!--header_image--> </td> </tr> </table> <!-- // End Template Preheader \\ --> <table border="0" cellpadding="0" cellspacing="0" width="600" class="contenttable" id="templateContainer" style="-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.025); -webkit-border-radius:6px;background: #272727; "> <tr> <td align="center" valign="top" style="border:2px solid <!--content_background_colour-->;"> <!-- // Begin Template Header \\ --> <table border="0" cellpadding="0" cellspacing="0" width="600" class="contenttable" id="templateHeader" style="background-color:<!--base_colour-->; -webkit-border-top-right-radius:6px; -webkit-border-top-right-radius:6px; color:<!--base_colour_light_or_dark-->; font-family:Arial; font-weight:bold; line-height:100%; vertical-align:middle;"> <tr> <td class="headerContent" style="padding:24px; "> <!-- // Begin Module: Standard Header Image \\ --> <h1 class="h1" style="color:<!--header_text_colour--> !important; margin:0; padding:10px 0; font-family:<!--header_font--> !important; <!--header_text_size--> <!--header_text_style-->"><!--email_heading--></h1> <!-- // End Module: Standard Header Image \\ --> </td> </tr> </table> <!-- // End Template Header \\ --> </td> </tr> <tr> <td align="center" valign="top" style="border:2px solid <!--content_background_colour-->;"> <!-- // Begin Template Body \\ --> <table border="0" cellpadding="0" cellspacing="0" width="600" class="contenttable" id="templateBody"> <tr> <td valign="top" class="bodyContent" style="background-color:<!--content_background_colour-->;"> <!-- // Begin Module: Standard Content \\ --> <table border="0" cellpadding="20" cellspacing="0" width="100%"> <tr> <td valign="top"> <div style="color:<!--content_text_colour--> !important; font-family:<!--content_font--> !important; <!--content_text_size--> <!--content_text_style--> "> و فایل زیر رو هم ویرایش کنین : wp-content/plugins/wp-email-template/emails/email_footer.html </div> </td> </tr> </table> <!-- // End Module: Standard Content \\ --> </td> </tr> </table> <!-- // End Template Body \\ --> </td> </tr> <tr> <td align="center" valign="top" style="border:2px solid <!--content_background_colour-->;"> <!-- // Begin Template Footer \\ --> <table border="0" cellpadding="10" cellspacing="0" width="600" class="contenttable" id="templateFooter"> <tr> <td valign="top" class="footerContent" style="background-color:<!--content_background_colour-->;"> <table border="0" cellpadding="10" cellspacing="0" width="100%"> <tr> <td colspan="2" valign="middle" id="credit" style="border:0; color:<!--content_text_colour_lighter-->; font-size:11px; line-height:125%; text-align:center;"> <p style="text-align:left"><span style="margin-right:10px"><!--blog_name--></span></p> </td> </tr> </table> </td> </tr> </table> <!-- // End Template Footer \\ --> </td> </tr> </table> <br /> </td> </tr> </table> </center></div></body></html> و اگر بخواین کل ایمیلایی که از سیستم وردپرس ارسال میشه تویه تیترش کلمه Wordpress نباشه کد زیر رو به فانکشن قالبتون اضافه کنین :add_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' );function custom_wp_mail_from_name( $original_email_from ){return 'اسمی که دوست دارین!';}موفق باشیدراستی یادم رفت اینو هم بگم ش( شایدم نیازی نباشها )لینک افزونه در مخزن وردپرس : https://wordpress.or...email-template/ لینک به ارسال
پست های پیشنهاد شده