Full Width Slider Problem clarification

  • brry

    #5616

    I had trouble making my full-width slider work on my child theme. I would upload background images with the correct width, but the theme cropped them and tiled to fill the slider width.

    Syahir explains how to add an image width filter in your child theme’s functions.php file in the original discussion thread:

    function graphene_custom_slider_image_size(){
    return 960;
    }
    add_filter( 'graphene_slider_full_image_width', 'graphene_custom_slider_image_size' );

    That still didn’t work for me. I decided he must have meant the snippet to instead read:

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

    Removing the word “_full” in the first parameter is the only difference.

    Admin

    Syahir Hakim

    #32347

    Graphene Options > Slider Options > Extend slider to full width of the theme

    brry

    #32348

    Hi Syahir,

    Oddly, checking the full-width slider box in the Graphene Options page did not give the expected result. The theme was still cropping full-width images by 20 pixels. So adding the filter was what worked for my child theme.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.