Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Length of text in Futures Slider in CorpoEye Theme #63497
    DMakedonskiy
    Participant

    Hello!

    I’ve made a child theme.
    Unfortunately, when I added your code to my function.php file in child theme, WordPress reported a syntax error: syntax error, unexpected ‘function’ (T_FUNCTION)
    Error line (16): function corpo_eye_child_slider_excerpt_length(){
    ——————————————————————

    My Function.php:

    <?php
    // Exit if accessed directly
    if ( !defined( ‘ABSPATH’ ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment markers above or below:

    if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
    function chld_thm_cfg_parent_css() {
    wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’, array( ‘font-awesome’,’jquery-sidr’ ) );
    }
    endif;
    add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’, 10 );
    add_filter('corpo_eye_filter_slider_caption_length', 'corpo_eye_child_slider_excerpt_length' );

    function corpo_eye_child_slider_excerpt_length(){

    return 10;
    }

    // END ENQUEUE PARENT ACTION

Viewing 1 post (of 1 total)