script appearing on webpage

  • Unknown's avatar

    Can someone give me a little wisdom?

    I’ve spent the weekend trying to find my error but I’m missing it.

    I’m trying to get a slider to open to a new page upon clicking (actually it is a Mail Chimp sign up)

    I’ve added this code to the functions php in my customizr child theme.

    add_filter(‘tc_slide_background’ , ‘my_slide_custom_link’, 10, 3);
    function my_slide_custom_link( $slide_image , $slide_link , $id) {
    //does nothing if the slide’s id is not the targeted one
    if ( 1516 != $id )
    return $slide_image;

    //sets a custom url for the targeted slide
    return sprintf(‘%2$s’,
    ‘http://eepurl.com/2ddur’,
    $slide_image
    );
    }

    It obviously isn’t working.

    As I said, Im pretty fresh to CSS and I can’t find my error.

    Thanks for all the help.

    Joanne

    The blog I need help with is: (visible only to logged in users)

  • I’m sorry but it appears you’re in the wrong forum.

    This forum is for help with sites hosted on WordPress.COM. Your site is a self-hosted WordPress(.org) site, for which you can get support here: http://www.wordpress.org/support

    More on the differences between WordPress.com and WordPress.org: http://en.support.wordpress.com/com-vs-org/

  • The topic ‘script appearing on webpage’ is closed to new replies.