Please make your functions plugable
-
First of all I think you’ve created a wonderfull theme.
I’ve created a child-theme from it, but then I wanted to change the excerpt > read more [text] I came to the point that I noticed that you’ve created a function for that specificly.
When I wanted to change this using my child-theme I got a HTTP500 error, this was because you’re bunny theme wanted to call the same function again.The solution for my problem was to make your function plugable, but on next update of your theme I have to change it again.
That’s why I suggest that you would update your theme and make your functions plugable using the following if statement around every function://Replace ‘bunny_continue_reading’ with the name of your function inside the if-statement
if ( ! function_exists ( ‘bunny_continue_reading’ ) ) {
// Youre original function comes here i.e.:// function bunny_continue_reading( $id ) {
// return ‘‘ . __( ‘<br/>>> Lees meer over: ‘, ‘bunny’ ) . get_the_title( $id ) . ‘‘;
// }
}
- The topic ‘Please make your functions plugable’ is closed to new replies.