• Hello, I am trying to add a video slider above the featured pages on the homepage.
    I have my child theme setup and I am adding this code:
    add_filter( ‘tc_default_widgets’ , ‘add_featured_page_widget’ );
    function add_featured_page_widget( $defaults ) {
    $defaults[‘fp_widgets’] = array(
    ‘name’ => __( ‘Featured Pages Widget’ , ‘customizr’ ),
    ‘description’ => __( ‘Above the featured pages area on home’ , ‘customizr’ )
    );
    return $defaults;
    }

    add_action(‘__before_fp’ , ‘display_my_fp_widget’);
    function display_my_fp_widget() {
    dynamic_sidebar(‘fp_widgets’);
    }

    from http://themesandco.com/snippet/adding-widget-area-home/

    Regardless of what I do, it always breaks my site and I end up having to re-install the theme. Note sure what I am doing wrong. Is there an easier way to add a video slider?

    Thanks in advance!

    http://www.crossfitnavigate.com

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Site breaking after adding php’ is closed to new replies.