Return to Support

Slider image won't fit

Home Forums Graphene WordPress theme Support Slider image won't fit

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1078
    Tenacious
    Member

    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?

    #14502
    Syahir Hakim
    Keymaster

    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.

    #14503
    Tenacious
    Member

    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?

    #14504
    Syahir Hakim
    Keymaster

    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;
    }

    #14505
    Tenacious
    Member

    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?

    #14506
    Syahir Hakim
    Keymaster

    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;
    }

    #14507
    Tenacious
    Member

    It worked! I can’t thank you enough!

    #14508
    Tenacious
    Member

    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.

    #14509
    Syahir Hakim
    Keymaster

    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.