Slider width and white borders

  • Anonymous

    #31003
    Quote:
    Insert this code into your child theme’s functions.php file:

    function graphene_custom_slider_image_width(){
    return 960;
    }
    add_filter( 'graphene_slider_image_width', 'graphene_custom_slider_image_width' );

    Hmm.. I was very close! But, used a wrong filter! Thanks Syahir! 🙂

    eg121

    #31004

    Thank you both very much! I will try this tonight.

    eg121

    #31005

    I tried this tonight and I got “Parse error: syntax error, unexpected T_STRING” so I ended up reinstalling the theme…

    The error said that it was on line 3, which after the <php line is:

    function graphene_custom_slider_image_width(){

    return 960px;

    }

    add_filter( ‘graphene_slider_image_width’, ‘graphene_custom_slider_image_width’ );

    If you get the chance, it would be great if you could let me know if you can see if there is anything immediately wrong with that line. Thank you!

    Admin

    Syahir Hakim

    #31006

    Oops.. the px shouldn’t be in there:

    function graphene_custom_slider_image_width(){
    return 960;
    }
    add_filter( 'graphene_slider_image_width', 'graphene_custom_slider_image_width' );

    But, Graphene 1.8 already has an option to extend the slider to the full width of the site, so you don’t need to do the above anymore.

    eg121

    #31007

    It worked! I just want to thank you again for your help, this support forum is truly invaluable.

Viewing 5 posts - 11 through 15 (of 15 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.