functions.php on childtheme : can't acces to admin panel
-
Hi everybody.
I’m using this fantastic Custumizr Theme for somes websites, using childtheme, but i now meet an issue with adding a functions.php on my childtheme.
When adding funtions.php, website is ok and functions works fine, but i can’t acces to the admin panel.
My website : https://hebergement-responsable.fr/biomod/
The code of functions.php is :
<?php /* Remove the ... from excerpt to change to readmore*/ if( ! function_exists('name_of_function') ) { function change_excerpt_more() { function new_excerpt_more($more) { // Use .read-more to style the link return '<span class="continue-reading"> <a href="' . get_permalink() . '">... >> Lire la suite</a></span>'; } add_filter('excerpt_more', 'new_excerpt_more'); } add_action('after_setup_theme', 'change_excerpt_more'); } /** reduce excerpt to 25 words */ if( ! function_exists('name_of_function') ) { function new_excerpt_length($length) { return 25; } add_filter('excerpt_length', 'new_excerpt_length'); } ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
I’m not an expert on php and i’m sure it’s just a little code tips i don’t have.
Could someone please help me ? (sorry for bad english ;-))
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘functions.php on childtheme : can't acces to admin panel’ is closed to new replies.