Support » Accessibility » Text Mean For Screen Readers Appearing in Email Campaign

  • Resolved jade4037

    (@jade4037)


    Hi folks,

    I am not a coder so solving this problem has me completely bewildered. I’m using Nisag Theme (which I love) for my blog and I’m creating an RSS Feed auto email through Mail Chimp. The only problem is that the MailChimp software keeps thinking it should show the screen reader text “read more” so that my blog excerpts come up with the excerpt followed by a link saying “read more read more” which REALLY looks like a mistake. How do I hide the screen reader text? Please keep in mind that I have no coding or programming experience, so very specific instructions are necessary! Thank you so much!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    I’m creating an RSS Feed auto email through Mail Chimp. The only problem is that the MailChimp software keeps thinking…

    For commercial product support please contact the author directly on their site.

    http://www.mailchimp.com

    Forum volunteers are not given access to commercial products, so they would not know why it is not working properly. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way. See https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products

    jade4037

    (@jade4037)

    Thanks for giving me the head’s up – I definitely did not mean to violate the rules!! 🙁 I was thinking more that someone might be able to say “go to this section of your theme, cut and paste this code, and it will tell other systems ‘hey – don’t display this as visual text’ “. I’m chatting with MailChimp as we speak!

    Joy

    (@joyously)

    The problem is in the theme, most likely. The ellipsis is supposed to indicate that the content was chopped, but a lot of themes use a filter to make it into a link.
    When you use a filter to replace the ellipsis with Read More, there is nothing to indicate what the context is.
    https://developer.wordpress.org/reference/hooks/excerpt_more/
    But the feed uses the same get_the_excerpt function as the normal page does.
    https://developer.wordpress.org/reference/functions/the_excerpt_rss/
    However, that function also has a filter, so the extra stuff can be removed. (or the theme should use is_feed() before adding it)

    • This reply was modified 5 months ago by  Joy. Reason: suggest is_feed()
    jade4037

    (@jade4037)

    @joyously I think I found the right place: `function nisarg_new_excerpt_more( $more ) {
    return ‘…<p class=”read-more”><a href=”‘. esc_url( get_permalink( get_the_ID() ) ) . ‘”>’ . __( ‘ Read More’, ‘nisarg’ ) . ‘<span class=”screen-reader-text”> ‘. __( ‘ Read More’, ‘nisarg’ ).'</span></a></p>’;
    }
    add_filter( ‘excerpt_more’, ‘nisarg_new_excerpt_more’ );`

    If this is it – how do I now fix it?

    Joy

    (@joyously)

    function nisarg_new_excerpt_more( $more ) {
      if ( !is_feed() ) {
        $more = '&hellip;<p class=”read-more”>‘ . __( ‘ Read More’, ‘nisarg’ ) . ‘<span class=”screen-reader-text”> ‘. __( ‘ Read More’, ‘nisarg’ ).'</span></p>’;
      }
      return $more;
    }
    add_filter( ‘excerpt_more’, ‘nisarg_new_excerpt_more’ );

    Theme code should be fixed by the theme author (for everyone)!! Make your fix in a child theme. And ask theme questions in the theme support forum!

    jade4037

    (@jade4037)

    @joyously I did ask – but never got an answer. So I turned to another source. THANK YOU!!!!!!!!!

    jade4037

    (@jade4037)

    @joyously am so sorry to bother you – the system keeps giving me an error whenever I put in the new code, and I have read and re-read the links and I’ve posted in the proper place and I’m ready to burst into tears. Any more ideas?

    jade4037

    (@jade4037)

    @joyously NEVER MIND! I figured it out – YOU ARE GENIUS!!!!! THANK YOU A GAZILLION TIMES!!!!!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Text Mean For Screen Readers Appearing in Email Campaign’ is closed to new replies.