• Resolved generosus

    (@generosus)


    Good Day,

    We are currently using the shortcode [mailpoet_archive] in our Newsletters page.

    At this time, we don’t have any newsletters in our archive, so our Newsletters page is displaying the following message in bold red text:

    Oops! There are no newsletters to display.

    How can we change the above message and color?

    We tried the filter noted below (obtained here), but it did not work.

    add_filter('mailpoet_archive_no_newsletters', 'Oops! There are no newsletters to display.');

    Help appreciated. Thank you!

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

    (@kellymetal)

    Hi there @generosus,

    I just tested the mailpoet_archive_no_newsletters filter, and it seemed to work on my site — I tried the following snippet:

    // Change archive "no newsletters" text
    add_filter( 'mailpoet_archive_no_newsletters', 'my_empty_mailpoet_archive_text', 10);
    function my_empty_mailpoet_archive_text() { 
        return "<span style='color: black'>This is my new text</span>";
    }

    That code should be added to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code Snippets plugin.

    Please let me know how that goes, or if you have any questions!

    Thread Starter generosus

    (@generosus)

    Hey @kellymetal,

    Thank you. Worked like a charm.

    Cheers!

    • This reply was modified 2 years, 4 months ago by generosus.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Change “Oops! There are no newsletters to display.”’ is closed to new replies.