functions.php issue in Twentyten Child Theme
-
Hello All,
I am using a twentyten child theme.
I have a file called functions.php in my child theme folder and all it contains is the following;
function twentyten_continue_reading_link() { return ' <a href="'. get_permalink() . '">' . __( '<div class="moreinfo">More Information <span class="meta-nav">»</span></div>', 'twentyten' ) . '</a>'; }
I use the above code as I want to change the wording “continue reading” to “more information”.
No here’s the strange thing. Sometimes (but not all the time), the site crashes with the following error;
“Cannot redeclare twentyten_continue_reading_link()”
I just re-upload my functions file and it works again even though it is the exact same file with the exact same code.
I read somewhere that my child theme’s functions should have a unique prefix? Unfortunately I do not understand this.
Any suggestions would be very welcome.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘functions.php issue in Twentyten Child Theme’ is closed to new replies.