我正在为客户端设置自定义模板,他们希望他们能够使用编辑器来更改某些元素的背景颜色。我添加了mc:edit属性,但它似乎没有任何作用-无法更改该属性。我还需要指定什么?
您需要在样式声明块中定义可编辑的css标签。您可以在其中放置希望客户端能够编辑的任何html标签。
示例:
((复制并保存在模板编辑器中,然后在广告系列编辑器中打开。)>
<html> <head> <style type="text/css"> /* @tab Body @section body style @tip Set the background color for your email's body area. */ #table{ /*@editable*/background-color:#888888; } </style> </head> <body> <table id="table"> <tr> <td> <div mc:edit="content"> Lorem ipsum </div> </td> </tr> </table> </body> </html>
请确保为任何可编辑部分赋予唯一的mc:edit ID。
来源:http://templates.mailchimp.com/getting-started/template-language/
有人知道如何将可编辑样式块与可重复块结合使用吗? (例如:mc:repeatable =“ image_with_content” mc:variant =“ block 1”)