• I have added the featured content gallery to a site for my daughter. However, it is horizontal and seems to cut off some of the images. Is there a way to fix that? I thought I remembered seeing an option to choose a layout, like sketch-horizontal, but I can’t find that setting again. The site is https://artkatdraws.com/.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Are you thinking of the landscape/portrait/square options in the Customizer’s Theme panel?

    Customize This is a Home Test

    Did you manage to get this sorted out? The portfolio images on the homepage look good in their portrait format at the moment.

    Thread Starter pcaddict

    (@pcaddict)

    Thanks for the reply. That’s probably what I’m thinking of. It’s the featured content slider above the portfolio images on the homepage that I am trying to change. It’s not the end of the world as she can always resize images so they fit in the featured content slider. I was just curious if there was a setting I could change.

    Moderator Kathryn Presner

    (@zoonini)

    There isn’t a simple setting to change the dimensions of the featured slider images, because that size is set in the theme’s functions.php file. It would probably be possible to change those dimensions a child theme, so if you want to go that route, let me know and I can try to point you in the right direction.

    Thread Starter pcaddict

    (@pcaddict)

    I can give the child theme a try and any help you can provide would be greatly appreciated.

    Moderator Kathryn Presner

    (@zoonini)

    Sorry it took a while to get back to you!

    Here’s how to change the height of the featured-content slider in Sketch.

    1) First, set up your child theme folder, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:

    https://codex.www.ads-software.com/Child_Themes
    https://op111.net/53/
    https://vimeo.com/39023468

    2) Once your child theme folder is set up, you’ll need to copy the parent theme’s setup function into your child theme’s functions.php folder.

    If your child theme already has a functions.php file – which it should if you use the child-theme method described in the Codex – look in the parent theme’s functions.php file and copy the setup function into your child theme’s functions.php. Starting from line 29 here:

    if ( ! function_exists( 'sketch_setup' ) ) :

    …copy the code up to and including line 99:

    add_action( 'after_setup_theme', 'sketch_setup' );

    3) Next, in your child theme’s functions.php file, change this line:

    add_image_size( 'sketch-featured', '1092', '400', true );

    …to whatever you’d like your new height to be. For example, if you’d like it to be 500px high instead of 400, make it:

    add_image_size( 'sketch-featured', '1092', '500', true );

    You’ll also need to add this CSS to your child theme’s style.css file:

    .home .flexslider .entry-thumbnail {
      height: 500px;
    }

    4) Final step is to activate and run the Regenerate Thumbnails plugin to remake your featured-slider images at the new size.

    Activate your child theme and you should now see your slider at the new height.

    I just tested the entire process on a test site and it worked well so please let me know how it goes if you give it a try!

    Kathryn, I just have to say, I think you’re wonderful!! And if I were not straight I would ask you to marry me.

    Your explanations are always very simple, clear, helpful, right to the point and always taking the other person’s context under account.
    I wish more people could communicate this way!

    I already implemented 2 very helpful changes to my site thanks to you, all under 5 minutes (well, I’m sure creating it took longer, but for me to copy paste it didn’t take long).

    IfatG – aww, that is so sweet. ?? I really appreciate you letting me know and I’m very glad you’ve been able to make some tweaks to your site!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can I Change Layout of Featured Content Block?’ is closed to new replies.