Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi.
    Our plugin build all the HTML and it hopes that, all the other plugins send only content, only information, but it is not usally happen. Some plugins send all the HTML too and it can do the structure see bad. It seems this is the case.

    What is the URL in the repository plugins WP of the memberpress plugin?

    regards

    Hi,

    Thanks so much for the reply. I’m not exactly sure what you’re asking but hoping this helps:

    Memberpress plugin: it’s a paid plugin so they are not in the repository. If you email me directly, I’ll give you access to my admin. But maybe what I’ve included below helps.

    Here is an example of the text editor when editing a Memberpress reminder email:

    <div id="body" style="width: 600px; background: #EEECDD; margin: 0 auto; text-align: left; padding: 0px 20px 20px 20px;">
    <div class="section" style="display: block; margin-bottom: 24px;">Hi {$user_first_name},</div>
    <div class="section" style="display: block; margin-bottom: 24px;">We don't want you to miss out on this big discount. Join Guitar Animal now before your free trial expires to get 20% off your membership forever. You can cancel at any time. No hassle!</div>
    <div class="section" style="display: block; margin-bottom: 24px;">Your 7-day free trial will end in just one day on <strong>{$subscr_expires_at}</strong>.</div>
    <h3 class="section" style="display: block; margin-bottom: 24px;"><a href="https://guitaranimal.com/join/trial-expiring-discount/"><strong>Click this link before your trial ends for 20% off your membership!</strong></a>? That's just $10.36 per month!</h3>
    <div class="section" style="display: block; margin-bottom: 24px;">Rock On!</div>
    <div class="section" style="display: block; margin-bottom: 24px;">- Your friends at Guitar Animal</div>
    </div>
    

    And here is the Memberpress email template in their plugin:

    <?php
    if(!defined('ABSPATH')) {die('You are not allowed to call this page directly.');}
    
    class MeprUserSubRenewsReminderEmail extends MeprBaseReminderEmail {
      /** Set the default enabled, title, subject & body */
      public function set_defaults($args=array()) {
        $this->title = __('Subscription Renews Reminder Email to User','memberpress');
        $this->description = __('This email is sent to the user when triggered.', 'memberpress');
        $this->ui_order = 0;
    
        $enabled = $use_template = $this->show_form = true;
        $subject = sprintf( __('** Your %1$s', 'memberpress'), '{$reminder_description}' );
        $body = $this->body_partial();
    
        $this->defaults = compact( 'enabled', 'subject', 'body', 'use_template' );
        $this->variables = array_unique(
                             array_merge( MeprRemindersHelper::get_email_vars(),
                                          MeprSubscriptionsHelper::get_email_vars(),
                                          MeprTransactionsHelper::get_email_vars() )
                           );
    
        $this->test_vars = array(
           'reminder_id'               => 28,
           'reminder_trigger_length'   => 2,
           'reminder_trigger_interval' => 'days',
           'reminder_trigger_timing'   => 'before',
           'reminder_trigger_event'    => 'sub-renews',
           'reminder_name'             => __('Subscription Renewing', 'memberpress'),
           'reminder_description'      => __('Subscription Renewing in 2 days', 'memberpress')
        );
      }
    }

    And here is the Memberpress email CSS:

    .mepr-edit-email-toggle {
      margin-left: 5px;
    }
    
    .mepr-edit-email input[type=text], .mepr-edit-email textarea {
      width: 500px
    }
    
    .mepr-emails-pane {
      margin-left: 15px;
    }
    
    .mepr-edit-email textarea {
      min-height: 300px;
    }
    
    .mepr-emails-wrap label {
      display: inline-block;
      min-width: 275px;
      width: 275px;
      max-width: 275px;
    }
    
    .mepr-emails-wrap textarea, .emails .legend-pane {
      display: inline-block;
      vertical-align: top;
    }
    
    .mepr-emails-wrap .legend-pane {
      padding-left: 10px;
      /* border: 1px solid #DFDFDF;
      border-radius: 3px;
      -webkit-border-radius: 3px;
      margin-left: 10px; */
    
      min-width: 200px;
      max-width: 200px;
      width: 200px;
    }
    

    Thank you again!

    Debbie

    Hi.
    Our plugin build HEADER - {CONTENT} - FOOTER and it hopes the others plugins only send {CONTENT}.

    Then the ideal structure will be:

    HEADER ( build by email template )
    CONTENT ( provider by others plugins [ new users, new subscribers, etc ] )
    FOOTER  ( build by email template )

    But it is not usually happen. In this case Memberpress plugin is sending HEADER - CONTENT - FOOTER and it must send ony CONTENT.

    Then the structure is:

    HEADER ( build by email template )
    HEADER ( build by memberpress )
    CONTENT ( build by memberpress )
    FOOTER  ( build by memberpress )
    FOOTER  ( build by email template )

    If you see, there is 2 HEADERS and 2 FOOTERS. This is a bad structure.

    I suggest you write to memberpress support and question them how can you remove the header and footer in the structure email.

    Regards

    Thank you again. I’ll do that. Appreciate your help.

    Debbie

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Huge space between logo and body’ is closed to new replies.