title attribute on read more link
-
Hello,
I’m currently trying to use the customization of the read more link, but when my link is displayed, there is no title attribute (for accessibility).
The only way I have found to add it is to modify the get_the_content() in the post-template.php(line 228) like this :
$output .= apply_filters( ‘the_content_more_link’, ‘ $more_link_text“, $more_link_text );
[older version :
$output .= apply_filters( ‘the_content_more_link’, ‘ $more_link_text“, $more_link_text );]
It is a bug ? or by design ?
And how can i add the title attribute to my links without modify the wordpress core ?
another way i had found to modify mmy links is to put a blank line as more_text in the the_content() function and create a link by hand with the_permalink() function.
But to my mind it’s a kind of hack !!Thanks for your help
- The topic ‘title attribute on read more link’ is closed to new replies.