Home Forums Newsletter Plugin Support Custom Newsletter Theme Images

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10351
    dsueiro
    Participant

    I’ve follwed the instructions to create my custom theme at:
    https://www.thenewsletterplugin.com/plugins/newsletter/newsletter-themes

    I want to include some images (located at wp-content/extensions/newsletter/emails/themes/mine) on my theme.php.

    I realized that there is a “plugins_url” php function. What is the php function to get the url of my custom theme folder?

    #10352
    Stefano
    Keymaster

    That function is something different, you cannot use it. Just put the full URL of your images in the HTML.

    #10353
    dsueiro
    Participant

    Thanks.

    So, I can’t have a full custom theme?
    I still have to edit the HTML source by hand?

    #10354
    Stefano
    Keymaster

    You can create your theme starting, if you need, from an already packaged theme, there is no problem. Just follow the instructions on my site.

    When created the theme, you don’t need to edit the generated newsletter or you can do only small changes.

    #10355
    dsueiro
    Participant

    I’ve already did it.
    But I need to include my wesite logo on the custom theme.
    How can I accomplish this?

    #10368
    Stefano
    Keymaster

    just add an img tag pointing to your logo, you can upload the logo in the theme folder.

    #10381
    dsueiro
    Participant

    Thanks.

    I’m sorry but I’m not a php expert.
    Could you please help me?
    How can I modify the sentence bellow to accomplish this?

    <tr style=”background: #fff; background-image: url(<?php echo plugins_url(‘site-logo.png’, __FILE__); ?>); height:80px;width:600px;” cellspacing=”0″ border=”0″ align=”center” cellpadding=”0″ width=”600″ height=”80″>
    </tr>

    #10384
    Stefano
    Keymaster

    Hi background images are NOT shown by most of the email client. Anyway, put the images in your theme folder, for example:

    wp-content/extensions/newsletter/emails/themes/mytheme/logo.jpg

    and then refer to it as

    http://www.yoursite.com/wp-content/extensions/newsletter/emails/themes/mytheme/logo.jpg

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.