Hi @marius84,
How are you changing the Read more label specifically?
I did not understand what are you saying. I posted how to solve the issue and you are reply with another question.
@diggeddy any idea to solve this?
That issue indicates that there is an inconsistency between the visible text label of an element its accessible name.
Looking at your Read More text, the aria-label starts with More on whereas the text starts with read more.
By default you’d need a code to alter that, adding the Post title as well. The reason I asked how you’re altering the read more link is so we can assess your code if indeed you have one.
If you’re using a plugin for this however, you’ll need to contact the developer of that plugin.
@fernandoazarcon2 I’m not using any plugin for this. I just use a fresh Generate press theme. An this Read More text it’s automatically generated by the Generate press theme.
Hi there,
what Fernando is saying is correct.
I assume the code you were given in this old topic is still present on the site:
https://wordpress.org/support/topic/links-do-not-have-descriptive-text/#post-13504516
For reference this is the code that Tom provided to change the Read More label:
add_filter( 'generate_excerpt_more_output', function() {
return sprintf(
' ... <a title="%1$s" class="read-more" href="%2$s" aria-label="%4$s">%3$s about %5$s</a>',
the_title_attribute( 'echo=0' ),
esc_url( get_permalink( get_the_ID() ) ),
__( 'Read more', 'generatepress' ),
sprintf(
/* translators: Aria-label describing the read more button */
_x( 'More on %s', 'more on post title', 'generatepress' ),
the_title_attribute( 'echo=0' )
),
get_the_title()
);
} );
And it is this 'More on %s' that returns the More on post title. Try changing it to: 'Read more about %s'
@diggeddy As always you are a top notch expert! Changing More on %s with Read more about %s solved the issue!
Thank you so much!
Hey Sir, I read it and checked your website. but still not sure about it 100%
you just changed “More on %s” to other ones, right??
but I’m using elementor editor. no clue how to edit it.
View post on imgur.com
Hi @lwkim,
Is Elementor handling your excerpts? If so, the code shared by David won’t work. You’ll need to reach out to their support regarding this.