• Resolved Logozuu

    (@logozuu)


    I am working on the confirmation email template with the WordPress Admin > MailPoet > Emails section

    The brand design that I need to implement for the client features a pastel green 2px border running down either side of the page of their communications and 20px in from the edge of the page.

    I have managed to write some source code in the H1 elements and the Paragraph element beneath but I can seem to get rid of the margin/padding top and bottom of each element so that the borders run seamlessly down the page, even when I use the !important tag to override any other formatting.

    Are you able to provide me with a solution for this?

    Here is the current code for the H1 section including parameters to adjust padding and margins:

    <h1 style="border-left: 2px solid #c4e2bd; border-right: 2px solid #c4e2bd; padding: 10px 20px !important; text-align: center; margin-top: 0 !important; margin-bottom: 0 !important;">
        [site:title]
    </h1>
    

    … and the paragraph code beneath:

    <p style="border-left: 2px solid #c4e2bd; border-right: 2px solid #c4e2bd; padding: 0px 20px; text-align: center;"><span style="color: rgb(64, 15, 63);">Hello [subscriber:firstname | default:there],</span></p>
    <p style="border-left: 2px solid #c4e2bd; border-right: 2px solid #c4e2bd; padding: 0px 20px; text-align: center;"><span style="color: rgb(64, 15, 63);"></span></p>
    <p style="border-left: 2px solid #c4e2bd; border-right: 2px solid #c4e2bd; padding: 0px 20px; text-align: center;"><span style="color: rgb(64, 15, 63);"> You've received this message because you subscribed to [site:title]. Please confirm your subscription to receive emails from us:&nbsp; </span></p>

    Any assistance would be greatly appreciated for this template and future MailPoet template formatting ??

    best regards
    Bren

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello there @logozuu

    Thank you for reaching out to us at MailPoet with your inquiry on custom code for your confirmation email template.

    We understand that you are aiming to achieve a specific brand design within the email template, which includes a particular format for your H1 elements and paragraph elements. This requirement involves custom code customization, and while we would love to help, please note that assistance with custom code is outside our scope of support.

    That being said, we recognize the importance of your request in maintaining your brand’s consistency across your communications. For assistance with custom code, we recommend reaching out to Codeable—an organization we are partnered with that specializes in such matters. This platform caters to a range of WordPress and MailPoet-related development needs and comprises a team of experts who specialize in custom code solutions.

    You can connect with Codeable experts through our partner page here: Codeable.

    I hope this helps.

    Cheers.

    Thread Starter Logozuu

    (@logozuu)

    thanks for your reply, Ojomo

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t get rid of padding/margin in confirmation email template’ is closed to new replies.