width for the slider images

  • rubenas

    #1377

    Hello,

    Thaks for your job. I have modified the .css file to get a three-colums template with the center colum biger, but now i have a problem.

    The slider has an option to show a background image, and the theme makes the tumbnails which it needs, taking into account the slider height that i gave in the control panel.

    But the width is too small for me, ¿how i can change the width for theese images?

    Thanks

    Mod

    Kenneth John Odle

    #15535

    Moved to “Support” — please read the rules.

    You might find your answer here. If that doesn’t work or you have questions, let us know.

    Ken

    Admin

    Syahir Hakim

    #15536

    If you modified the slider width, you would need to modify the width that WordPress automatically crops images into.

    You will need a child theme for this. Insert this code in your child theme’s functions.php file (create one if it doesn’t exist yet):

    <?php
    function graphene_custom_slider_image_width(){
    return 445; // Change this value to your slider's width
    }
    add_filter( 'graphene_slider_small_image_width', 'graphene_custom_slider_image_width' );
    ?>

    445px is the theme’s default slider width. Change it to your customised width.

    rubenas

    #15538

    Fantastic! i’t a great idea!! i’m going to try it.

    Thanks a lot.

    rubenas

    #15539

    It works perfect!

    Thank you so much.

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

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!