Change the more-tag
-
So far I’ve made the change to the more tag via functions.php. Now I wanted to try out the Code Snippets plugin, which is also recommended by you. Unfortunately, that doesn’t work.
If I enter the following in functions.php, everything is displayed as I want it.
function modify_read_more_link() { return '<a class="r-link link text-underlined" href="' . get_permalink() . '">Mehr lesen</a>'; } add_filter( 'the_content_more_link', 'modify_read_more_link' );
If I enter the whole thing in the code snippet plugin, I have the old more tag again, which I don’t want.
Maybe I made a mistake and changed the theme to 2019 as a test. It works fine there. Where am I making the mistake?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change the more-tag’ is closed to new replies.