Make td have editable background color in Mailchimp editor

I am setting up a custom template for a client where they want to change the background color of some elements using an editor. I added the mc: edit property, but this does not seem to have any effect - the property cannot be changed. What else do I need to specify?

+4
source share
1 answer

You need to define editable css in the style declaration block. You can put any html where you want your client to be able to edit.

Example:

(copy and save in the template editor and open in the editor of your campaign).

<html>
    <head>

    <style type="text/css">

    /*
    @tab Body
    @section body style
    @tip Set the background color for your email 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.

: http://templates.mailchimp.com/getting-started/template-language/

+1

Source: https://habr.com/ru/post/1614106/


All Articles