Title: Slider: custom posts &amp; height
Last modified: August 31, 2016

---

# Slider: custom posts & height

 *  Resolved [controlb](https://wordpress.org/support/users/controlb/)
 * (@controlb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/)
 * I have a couple of questions about the Kyma slider:
    1. How can I use the slider with custom posts (e.g. event posts in Events Manager)?
    2. How can I change the height of the slider?

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [webhuntsupport](https://wordpress.org/support/users/webhuntsupport/)
 * (@webhuntsupport)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138380)
 * Hi,
 * Please explain in more detail your first issue with screen-shot.
 * For second issue follow below instructions:
 * Kyma theme slider is auto responsive which is adjust according to slider image
 * size.
 * We already fixed slider image size(1349*540)px.
 * You can increase/decrease slider image size according your requirement.
 * Go to your core theme directory >> functions.php file.
 * Now open in any text editor and find the below line of code.
 * `add_image_size('kyma_slider_post', 1349, 540, true);`
 * And change it’s height (540) according your need.
 * Let us know for further help.
 * Please provide site URL for further issue.
 * Thank You
 *  Thread Starter [controlb](https://wordpress.org/support/users/controlb/)
 * (@controlb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138487)
 * Thanks for fixing issue 2.
 * Issue 1: a screenshot wouldn’t help unfortunately. Do you know the [Events Manager plugin](https://wordpress.org/plugins/events-manager/)?
   It creates events as posts, however the posts are not shown as regular posts.
   I’m looking at EM for a solution but if you can come up with an idea that’d be
   very helpful.
 *  [webhuntsupport](https://wordpress.org/support/users/webhuntsupport/)
 * (@webhuntsupport)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138547)
 * Hi,
 * This plugin is not compatible with our theme.
 * Because its a third-party plugin.
 * Let us know for further assistance.
 * Thank You.
 *  Thread Starter [controlb](https://wordpress.org/support/users/controlb/)
 * (@controlb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138616)
 * Is there any way of changing the slider size in Kyma-Child? I tried copying over
   the whole kyma_theme_setup function but got a server error.
 *  Theme Author [WebHunt Infotech](https://wordpress.org/support/users/webhuntinfotech/)
 * (@webhuntinfotech)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138617)
 * Hi,
 * We already provide the solution for slider image.
 * But i think you want to use **“Child-Theme”** for changing the slider image size.
 * Then change the function name **“kyma_theme_setup”** to **“kyma_theme_setup_child”.**
 * And put below line of code into this function.
 * add_image_size(‘kyma_slider_post’, 1349, 540, true);
 * Save the changes.
 * Let us know for further assistance.
 * Thank You.
 *  Thread Starter [controlb](https://wordpress.org/support/users/controlb/)
 * (@controlb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138618)
 * Hi,
 * It looks like the slider defaults to the height of the image used, instead of
   doing the equivalent of ‘background-size: cover’, which is what’s needed here,
   particularly with images of different sizes.
 * I’ve tried making the height change to both theme setup functions but the slider
   only pays attention to the image size.
 * I’ve also tried changing the wrapper height via the CSS, but this either distorts
   the image or knocks the text lines down.
 *  [webhuntsupport](https://wordpress.org/support/users/webhuntsupport/)
 * (@webhuntsupport)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138621)
 * Hi,
 * Here we are sending a **“Child-Theme”** package link.
 * Link is [HERE](http://www.4shared.com/zip/c86d7pUIce/kyma-child-slider.html).
 * Please download and activate it.
 * Here we already customized your **“Child-Theme”** package according your
 * requirement. If you want to change slider height then please change slider
 * image size. then it will automatically adjust according image size.
 * For changing the slider image size open **“functions.php”** file from your
 * **“Child-Theme”** directory.
 * And find below line of code
 * **add_image_size(‘kyma_slider_post_child’, 1349, 350, true);**
 * and change the size **350(height)** according your need.
 * Save the changes.
 * Note: After activate the **“Child-Theme”** or modify the changes please upload
   your slider post images.
 * Hope it will work for you.
 * Let us know for further help.
 * Thank You
 *  Thread Starter [controlb](https://wordpress.org/support/users/controlb/)
 * (@controlb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138622)
 * That’s exactly what I did; it ignores that and takes the height from the image
   instead.
 *  [webhuntsupport](https://wordpress.org/support/users/webhuntsupport/)
 * (@webhuntsupport)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138623)
 * Cheers.
 * Can we mark this ticket as resolved ?
 * Thank You
 *  Thread Starter [controlb](https://wordpress.org/support/users/controlb/)
 * (@controlb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138625)
 * No, because I did exactly what you said and the slider ignores it and takes the
   slider height from the image instead.
 *  Theme Author [WebHunt Infotech](https://wordpress.org/support/users/webhuntinfotech/)
 * (@webhuntinfotech)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138626)
 * Hi,
 * Share your site URL.
 * W’ll check if your slider image is croping or not.
 * Thanks
 *  Thread Starter [controlb](https://wordpress.org/support/users/controlb/)
 * (@controlb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138628)
 * Thanks, but after all this I’ve decided to use a different theme.
 *  Theme Author [WebHunt Infotech](https://wordpress.org/support/users/webhuntinfotech/)
 * (@webhuntinfotech)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138629)
 * Hi,
 * Most Welcome.
 * We can only assist you for any query.
 * Sorry for inconvenience.
 * Thank You
 *  [gratwick360](https://wordpress.org/support/users/gratwick360/)
 * (@gratwick360)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138676)
 * The guy that dumped your theme was right. Slider images are NOT responsive. I
   have an image 600×600 that is being stretched out much bigger than that…
 * If this issue is still unresolved, I might have to follow his lead.
 *  Theme Author [WebHunt Infotech](https://wordpress.org/support/users/webhuntinfotech/)
 * (@webhuntinfotech)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138677)
 * hello grawick360,
 * The recommended size of slider image is 1349×540 pixels or greater than this.
 * If you upload image that is smaller than above resolution it’ll not be croped
   and will be display as it is in it’s actual size.
 * so upload the image of correct size and it’ll be automatically croped.
 * Hope this answers the question.
 * Thanks

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Slider: custom posts & height’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/kyma/2.9.2/screenshot.jpg)
 * Kyma
 * [Support Threads](https://wordpress.org/support/theme/kyma/)
 * [Active Topics](https://wordpress.org/support/theme/kyma/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/kyma/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/kyma/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [height](https://wordpress.org/support/topic-tag/height/)

 * 15 replies
 * 4 participants
 * Last reply from: [WebHunt Infotech](https://wordpress.org/support/users/webhuntinfotech/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/slider-custom-posts-height-code/#post-7138677)
 * Status: resolved