Home Forums Newsletter Plugin Support Custom Theme PHP updates did not show in editor

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15408
    adriespo
    Participant

    Hi to all,

    I have a strange problem. I followed the instructions here https://www.thenewsletterplugin.com/plugins/newsletter/newsletter-themes and I created a custom theme.

    Then I created a newsletter and I assigned to it my custom theme.

    But If I MODIFY THE PHP CODE IN THE THEME, in example in the file theme.php the updates did not show in the editor.

    Let me exemplify:

    I create a new theme from Theme-3.
    I add that line somewhere in the body: <?php echo “test”; ?>
    I create a newsletter from that custom theme.
    I see the string “test” in the body.
    THEN I go in the php file and I change “test” in “toast”.
    I upload, refresh, empty chace and so on BUT in the editor of the cited newsletter the string rest as “test”: NO MODIFY AT ALL.

    Surely I miss something in the mechanism of the plugin, but what?

    Anyway:

    Plugin version: 3.6.8
    Wordpress version: 4.1.1
    Custom theme folder: /wp-content/extensions/newsletter/emails/themes/clas

    #15409
    Stefano
    Keymaster

    If you change the theme you must regenerate a new newsletter. The theme run once when you choose it to generate the newsletter, it cannot change the editor content. You should be able to see modification to the theme on the preview before move to the editor.

    #15411
    adriespo
    Participant

    Thank you, then I’ll use the page with Refresh the preview button.

    Greetings.

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