How to amend a function in the functions.php file but copy to a child theme….
-
Hi,
I just want to remove the “Continue Reading” link from my index page of posts. I’ve found this in the main twentyten functions.php file.
function twentyten_continue_reading_link() { return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) . '</a>'; }
So my theme is a child theme, and in that directory I want to put
function twentyten_continue_reading_link() { return ' <a href="'. get_permalink() . '">' . __( '', 'twentyten' ) . '</a>'; }
but it breaks saying that the function is already defined. How do I add this to my child functions.php file without breaking it. Is there a way to undeclare a function?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to amend a function in the functions.php file but copy to a child theme….’ is closed to new replies.