Skip to main content
13 events
when toggle format what by license comment
Nov 28, 2015 at 19:12 comment added ginobrugman I've searched my template thoroughly but I can't find it.
Nov 28, 2015 at 17:13 comment added ginobrugman nothing, the page shows normally. Except the read more link on my english blog page doesnt change.
Nov 28, 2015 at 17:06 comment added Abhik @ginobrugman what exactly you are getting when you put that code? Blank output? wrong link? What?
Nov 28, 2015 at 15:04 comment added ginobrugman Added your code to my child themes functions.php, No luck tho :(
Nov 28, 2015 at 13:05 history edited Abhik CC BY-SA 3.0
added 324 characters in body
Nov 28, 2015 at 13:04 comment added Abhik @ginobrugman You don't need to make it pluggable since there are no functions modifying the read more link. Simple returning of the new link will be sufficient. I have added a solution to my answer. Try it and let me know if that works.
Nov 28, 2015 at 12:29 comment added ginobrugman I made it pluggable. Even put it above the prefix_term_name function mentioned earlier. None of this works. Also there are no other functions using modify_read_more_link
Nov 28, 2015 at 10:07 comment added Abhik @ginobrugman what happens when you add the code above? Is there any other function with name modify_read_more_link exists in parent theme?
Nov 28, 2015 at 9:08 comment added ginobrugman Could you help me one more time?
Nov 27, 2015 at 22:03 comment added ginobrugman I also tried this for the modify_read_more_link function. Making it pluggable in the function.php of my main theme. This didn't work tho. if ( !function_exists( 'modify_read_more_link' )) { add_filter( 'the_content_more_link', 'modify_read_more_link' ); function modify_read_more_link() { return '<a class="more-link" href="' . get_permalink() . '">Read more</a>'; } } This was the code used with your plugging
Nov 27, 2015 at 21:53 vote accept ginobrugman
Nov 27, 2015 at 21:05 comment added ginobrugman So this if ( !function_exists( 'function_name' )) { function function_name() { function prefix_term_name($terms, $post_id, $taxonomy ) { foreach ($terms as &$term) { $term->name = 'Terug naar '.$term->name; } } return $terms; } } Should be in my parent theme's functions.php. And I will be able to use the same code without your code in my child theme's functions.php?
Nov 27, 2015 at 19:47 history answered Abhik CC BY-SA 3.0