Overriding parent php in Bizlight child theme
-
I’ve been at this for days, trying to get rid of the excerpts and have the text continue as a normal paragraph and not linking to anything.
In a “inc” folder is hooks and in that is “excerpt.php”. I am very new to php language and i want to override it in the functions.php in child theme but it doesn’t work. I also want to change button that reads click to start but child doesn’t allow me to do that either. My website is https://mouseoverdesigns.com and if anyone could please help because I’ve grown very frustrated. Here is a copy of the excerpt.php:
<?php
if( ! function_exists( ‘bizlight_excerpt_length’ ) ) :/**
* Excerpt length
*
* @since Bizlight 1.0.0
*
* @param null
* @return int
*/
function bizlight_excerpt_length( ){
return esc_attr( 30 );
}endif;
add_filter( ‘excerpt_length’, ‘bizlight_excerpt_length’, 999 );
- The topic ‘Overriding parent php in Bizlight child theme’ is closed to new replies.