Slider image won't fit

  • Tenacious

    #1078

    The problem lies with the first featured post on my website:

    http://soicraft.net/

    I’m trying to make the image fill the entire area within the borders, but it just won’t work. I’ve resized the image countless times but the image just doesn’t fill up the entire area.

    What exactly am I doing wrong?

    Admin

    Syahir Hakim

    #14502

    You’ll need to adjust the padding of the slider post container for that first slider post. Can’t really do it now without affecting the other slider posts, but I’ve added a unique ID to every slider post in the upcoming version 1.3.1, so you should be able to do it then.

    Tenacious

    #14503

    Hey there Syahir, I just noticed that 1.3.1 was released and just wanted to say thanks for the effort.

    As you said, posts now have a unique identifier. How do I go about adjusting the padding of the slider post container?

    Admin

    Syahir Hakim

    #14504

    Put this inside your child theme’s style.css or Custom CSS:

    .slider-post-262{
    padding: 0;
    width: 630px;

    }
    .slider-post-262 .sliderpost_featured_image{
    margin: 0;
    }

    Tenacious

    #14505

    I did as you said, but the left and top padding seems to still be in effect. Judging by the code, it affects the featured image. I have the slider image set to a custom url – maybe that’s the problem?

    Admin

    Syahir Hakim

    #14506

    Ah, there’s a mistake in the code. Should be like this:

    #slider-post-262{
    padding: 0;
    width: 630px;

    }
    #slider-post-262 .sliderpost_featured_image{
    margin: 0;
    }

    Tenacious

    #14507

    It worked! I can’t thank you enough!

    Tenacious

    #14508

    Sorry for the double-post, I just wanted to ask if you planned on simplifying the process. I would imagine that the code would grow tremendously over time.

    Admin

    Syahir Hakim

    #14509

    Why would the code grow tremendously over time? It’s a one-time change, is it not? Plus, you can always use a child theme to implement the change.

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

You must be logged in to reply to this topic.