Updated Sep 2015: This snippet now works only with Customizr 3.4.* and Customizr-Pro 1.2.*
Updated June 2015: This snippet now works only with Customizr > 3.3.26 and Customizr-Pro > 1.1.9
Updated June 2015: Fixed conflict with AddThis plugin : better handling of the post excerpt. Thanks to @Claudia Lopez for reporting this.
(> strictly )
In this post I will show you how to make the front-page slider display the last 5 posts tagged in with a certain tag.
Steps:
- Follow just the #1,#2 and #4 steps of this tutorial. (In the snippet below we assume you’ve chosen “front-slider” to name your slider). The uploaded image, added to the slider, will be used as default image when posts have no image.
- Create a new post, or edit the posts you want, adding the tag “front-slider”. This will give us the control on which post display in the front slider. The displayed image for the post(s), in the slider, will be the featured image, if set, otherwise the first attachment image will be used. If neither of those are available, the abovementioned default image will be used.
- Copy the snippet below in your child-theme functions.php .
- [Optional] You can also chose to display a different image, than the featured one, for this slider. To achieve that just:
- upload a new image (see the slider’s image sizes)
- add a custom field named “slide_img” to the post and set its value with the ID of the just uploaded image..
/* Works with Customizr > 3.3.26 and Customizr-Pro > 1.1.9 */ add_filter('tc_core', 'use_custom_slider_class'); function use_custom_slider_class($classes){ //don't instantiate default class unset( $classes['content'][ array_search(array('inc/parts','slider'), $classes['content']) ] ); //instantiate our class new TC_Slider_mod; return $classes; } add_filter('tc_slider_name_id', 'my_slider_of_posts'); function my_slider_of_posts( $slider_name_id ){ if ( $slider_name_id == 'front-slider' ) return array( 'slider' => 'front-slider', 'query' => array( 'tag' => "front-slider", 'posts_per_page' => 5, 'order' => 'desc' ), ); return $slider_name_id; } if ( ! defined('CUSTOMIZR') ) define('CUSTOMIZR', get_template_directory() ); require_once( CUSTOMIZR . '/inc/parts/class-content-slider.php'); class TC_Slider_mod extends TC_slider{ private $saved_slides; private $slider_name_id = false; private $layout_value; private $img_size; private $layout_class; //override tc_set_slider_hooks() function tc_set_slider_hooks() { //gets the actual page id if we are displaying the posts page $queried_id = $this -> tc_get_real_id(); $slider_name_id = apply_filters('tc_slider_name_id', $this ->tc_get_current_slider($queried_id) ); if ( ! is_array( $slider_name_id ) ) return parent::tc_set_slider_hooks(); extract($slider_name_id); $all_sliders = TC_utils::$inst -> tc_opt( 'tc_sliders'); $saved_slides = ( isset($all_sliders[$slider]) ) ? $all_sliders[$slider] : false; //if the slider not longer exists or exists but is empty, return false if ( !isset($saved_slides) || ! is_array($saved_slides) || empty($saved_slides) ) return; add_action( '__after_header' , array( $this , 'tc_slider_display' ) ); add_action( '__after_carousel_inner' , array( $this , 'tc_slider_control_view' ) ); //adds the center-slides-enabled css class add_filter( 'tc_carousel_inner_classes', array( $this, 'tc_set_inner_class') ); $this -> tc_slider_mod_set_properties( $saved_slides, $slider_name_id, $queried_id ); } private function tc_get_current_slider($queried_id) { //gets the current slider id $_home_slider = TC_utils::$inst->tc_opt( 'tc_front_slider' ); $slider_name_id = ( tc__f('__is_home') && $_home_slider ) ? $_home_slider : esc_attr( get_post_meta( $queried_id, $key = 'post_slider_key' , $single = true ) ); return apply_filters( 'tc_slider_name_id', $slider_name_id , $queried_id); } private function tc_get_real_id() { global $wp_query; $queried_id = get_queried_object_id(); return ( ! tc__f('__is_home') && $wp_query -> is_posts_page && ! empty($queried_id) ) ? $queried_id : get_the_ID(); } function tc_slider_mod_set_properties( $saved_slides, $slider_name_id, $queried_id ){ $this -> saved_slides = $saved_slides; $this -> slider_name_id = $slider_name_id; //gets slider options if any $layout_value = tc__f('__is_home') ? TC_utils::$inst->tc_opt( 'tc_slider_width' ) : esc_attr(get_post_meta( $queried_id, $key = 'slider_layout_key' , $single = true )); $this -> layout_value = apply_filters( 'tc_slider_layout', $layout_value, $queried_id ); //declares the layout vars $this -> layout_class = implode( " " , apply_filters( 'tc_slider_layout_class' , ( 0 == $layout_value ) ? array('container', 'carousel', 'customizr-slide') : array('carousel', 'customizr-slide') ) ); $this -> img_size = apply_filters( 'tc_slider_img_size' , ( 0 == $layout_value ) ? 'slider' : 'slider-full'); } //override tc_slider_display function tc_slider_display() { if ( ! $this -> slider_name_id ) return parent::tc_slider_display(); $slider_name_id = $this -> slider_name_id; $img_size = $this -> img_size; $saved_slides = $this -> saved_slides; $layout_class = $this -> layout_class; $slides = $this -> tc_get_posts_slides( $slider_name_id, $img_size, $saved_slides ); //returns nothing if no slides to display if ( ! isset($slides) || ! $slides ) return; extract($slides); //define carousel inner classes $_inner_classes = implode( ' ' , apply_filters( 'tc_carousel_inner_classes' , array( 'carousel-inner' ) ) ); ob_start(); ?> <div id="customizr-slider-<?php echo self::$rendered_slides ?>" class="<?php echo $layout_class ?> "> <?php if ( 1 == esc_attr( TC_utils::$inst->tc_opt( 'tc_display_slide_loader') ) && apply_filters( 'tc_display_slider_loader' , true ) ): ?> <div class="tc-slider-loader-wrapper"> <div class="tc-img-gif-loader"> <img data-no-retina src="<?php echo apply_filters('tc_slider_loader_src' , sprintf( '%1$s/%2$s' , TC_BASE_URL , 'inc/assets/img/slider-loader.gif') ) ?>"> </div> </div> <?php endif; ?> <?php do_action( '__before_carousel_inner' , $slides ) ?> <div class="<?php echo $_inner_classes?>"> <?php foreach ($slides as $id => $data){ $_view_model = compact( "id", "data" , "slider_name_id", "img_size" ); $this -> tc_render_single_slide_view( $_view_model ); } ?> </div><!-- /.carousel-inner --> <?php do_action( '__after_carousel_inner' , $slides ) ?> </div><!-- /#customizr-slider --> <?php $html = ob_get_contents(); if ($html) ob_end_clean(); echo apply_filters( 'tc_slider_display', $html, $slider_name_id ); } function tc_get_posts_slides( $slider_name_id, $img_size, $saved_slides){ extract($slider_name_id); global $wp_query, $wp_the_query, $post; $wp_query = new WP_Query($query); // if you don't want to show the first attachment when featured image isn't set // remove the line below add_filter('tc_show_single_post_content', '__return_false'); // remove smart load if any $smart_load_enabled = method_exists('TC_utils', 'tc_parse_imgs') && method_exists('TC_utils', 'tc_opt') && esc_attr( TC_utils::$inst->tc_opt( 'tc_img_smart_load' ) ); if ( $smart_load_enabled ) remove_filter('tc_thumb_html', array(TC_utils::$instance, 'tc_parse_imgs')); // build our array of slides //initialize the slides array $slides = array(); //init slide active state index $__loop_index = 0; while ( have_posts() ){ the_post(); //title $title = $post->post_title; $default_title_length = apply_filters( 'tc_slide_title_length', 80 ); $title = ( strlen($title) > $default_title_length ) ? substr( $title,0,strpos( $title, ' ' , $default_title_length) ). ' ...' : $title; //lead text $text = $this -> tc_get_post_slides_excerpt( $post->post_excerpt, apply_filters('tc_slide_text_length', 250), '...'); //button text $button_text = __('Read more »', 'customizr'); $default_button_length = apply_filters( 'tc_slide_button_length', 80 ); $button_text = ( strlen($button_text) > $default_button_length ) ? substr( $button_text,0,strpos( $button_text, ' ' ,$default_button_length)). ' ...' : $button_text; //link post id $link_id = get_the_id(); $id = $link_id; //button link $link_url = $link_id ? get_permalink( $link_id ) : 'javascript:void(0)'; //sets the first slide active $active = ( 0 == $__loop_index ) ? 'active' : ''; $color_style = ''; //attachment image $alt = apply_filters( 'tc_slide_background_alt' , trim(strip_tags( get_the_title() ) ) ); $slide_background = $this -> tc_get_thumbnail_data($img_size, $alt); //adds all values to the slide array only if the content exists (=> handle the case when an attachment has been deleted for example). Otherwise apply a default slide if ( empty($slide_background) && isset($saved_slides[1]) ) $slide_background = wp_get_attachment_image( $saved_slides[1], $img_size, false, array( 'class' => 'slide' , 'alt' => $alt ) ); $slides[$id] = array( 'title' => $title, 'text' => $text, 'button_text' => $button_text, 'link_id' => $link_id, 'link_url' => $link_url, 'active' => $active, 'color_style' => $color_style, 'slide_background' => $slide_background, 'link_target' => '_self' ); //increments active index $__loop_index++; }//end of slides loop $slides = apply_filters('tc_post_slides', ( !empty($slides) ) ? $slides : false, $img_size); // if you chose to not show the first attachment when featured image isn't set // remove the line below remove_filter('tc_show_single_post_content', '__return_false'); // re-add smart load if removed if ( $smart_load_enabled ) add_filter('tc_thumb_html', array(TC_utils::$instance, 'tc_parse_imgs')); $wp_query = $wp_the_query; //returns the slides or false if nothing return $slides; }// end pf tc_get_the_slides function tc_get_thumbnail_data($img_size, $alt){ $attachment_id = get_post_meta( get_the_ID(), 'slide_img'); if ( $attachment_id ) return wp_get_attachment_image( $attachment_id[0], $img_size, false, array('class' => 'slide' , 'alt' => $alt) ); $thumb = TC_post_thumbnails::$instance -> tc_get_thumbnail_model($img_size); $thumb = isset($thumb) && isset($thumb['tc_thumb']) ? $thumb['tc_thumb'] : null; return $thumb; } function tc_get_post_slides_excerpt( $excerpt, $default_text_length, $more ){ if ( '' == $excerpt ) { $excerpt = get_the_content(''); $excerpt = strip_shortcodes( $excerpt ); $excerpt = apply_filters( 'the_content', $excerpt ); $excerpt = str_replace(']]>', ']]>', $excerpt ); } $excerpt = trim(strip_tags($excerpt)); $end_substr = $excerpt_length = strlen( $excerpt ); if ( $excerpt_length > $default_text_length ){ $end_substr = strpos( $excerpt, ' ' , $default_text_length); $end_substr = ( $end_substr !== FALSE ) ? $end_substr : $default_text_length; $excerpt = substr( $excerpt , 0 , $end_substr ); } return ( $end_substr == $excerpt_length ) ? $excerpt : $excerpt . ' '.$more; } }
Where to copy/paste this code?
Add it to your child-theme functions.php.
Everything you need to know about creating a child theme with Customizr here.
Goodluck and goodbye
74 thoughts on “Make a Customizr slider display recent posts”
Hi Rocco
Do the code also include custom post types (such as events – from the The Events Calendar plugin) or is it possible to modify the code so that custom post types also are included? [Running Customizr Pro v1.2.35]
Hi,
You can add custom post types like events by altering the query. Include post_type argument as well.
Thanks for your reply. Start working with the code. However even before modifying the code above, it seem s not to work with pro version: 1.2.35. This file is not in the pro version:
Failed opening required ‘/home/www/hi-lf.dk/wp/wp-content/themes/customizr-pro/inc/parts/class-content-slider.php’
Is there a way to fix it?
Hi,
This file does not exist after pro version 1.2.30+. Look at the release note here: http://presscustomizr.com/customizr-pro-v1-2-30-customizr-free-v3-4-30-release-note/
But, the above snippet has to be added to functions.php of the child theme.
Hi,
The developer team handles support for Customizr at https://wordpress.org/support/theme/customizr and for Customizr-Pro at http://presscustomizr.com/support/. Please post your query there with a link to your site.
I already asked there Menaka days ago and no answer but I see this blog is on topic and people asking here so thought I try and get some help after days of looking for answers. Thanks if someone could help there please >>>>>> https://wordpress.org/support/topic/overrideconvert-default-slider-into-recent-post-carousel-like-flexslider-how
I just want front page slider to be a recent post carousel instead of full slide image. Any snippet for that?
After finally figuring out how to get to my child’s theme functions php location I don’t know if a plugin given functions php code is wrong or I need additional snippet to go along because its NOT working. Plugin gives me shorcode too and not sure which i need to use, neither work on their own.
Hi, Rocco.
I’ve a new problem. The snippet works fine, but wen I activate the plugin Polylang it doesn’t work.
Thanks.
Hello Rocco, I have a error using this snippet.
The error is:
Fatal error: Access to undeclared static property: TC_Slider_mod::$rendered_slides
I’m using Customizr version 3.4.13
Thank you!
Hello Rocco, thanks for this snippet !
I had a problem however. After I created a slider with the correct name and pasted the code, my homescreen went blank.
I investigated and, for some reason, the code of the loaded page stopped at what is line 116 in your code.
It appeared like this in my loaded page’s source code : “<div id="customizr-slider-"
So, for some reason, customizr couldn't resolve this :
I modified the line like this : <div id="customizr-slider-2" class=" “>
… and now it works. I don’t know if you can reproduce, i just wanted to warn you :).
Thank you !
Hello, is there any way to use both a video embedded into the slider, AND to make the slider display latest posts at the same time? I pasted both snippets into the functions.php file, set the tags for posts, but it seems it ignores the snippet for recent posts. Video is still okay.
Your theme is awesome anyway. Thank you 🙂
Hi Rocco, I’m working with child-theme (version 3.4.8). When I add the snippet, I’m getting some warning messages:
(sorry, I forgot to close the quote-tag)
Hello Andrea,
I’m not able to reproduce your issue. What I can see from your warning (which are warning and not errors, and you can “mute” them disabling wp_debug or in your php.ini) is that you have a class-content-slider.php in your child-theme. Why?
The reason why I made this snippet the way it’s written it’s exactly to avoid the re-write of that class in the child-theme, so to always keep the original code intact.
p.s.
I just made a correction in the snippet (see line: ) to fix a bug which prevented the slider to cycle.
Hi there, is it possible to make a slider that would display 5 most viewed posts? F.e. 5 most viewed posts this week/month?
Hello Kamil,
those are not standard wordpress info. It doesn’t take care, by default, of such statistics. So you cannot make a query (line 18) to retrieve those posts. But if you have a plugin which allows you to retrieve those info maybe you can set up a custom query for this purpose.
it did not work for me. dunno if it’s cause i have the 3.3.28 instead of the 3.3.26
Thank you
Hello Sugarchimp.
Would you like to elaborate “did not work”? What exactly doesn’t work?
It works fine here with 3.3.28.
I’m getting some warnings when I choose the front-slider, but it’s working fine if I choose the demo slider.
“Illegal offset type in isset or empty” in some files.
Hello Felipe,
can you paste the exact error?
Thank You Sir.
Glad you found it useful! 😀
Hey Rocco,
I don’t know if the whole snippet has the same problem or it is just the version you did form me (add photo first and after). In any case, mine is not working after the last update of customizr.
I posted too in the theme support on wordpress
https://wordpress.org/support/topic/update-the-theme-and-my-slider-disappeared
Any help?
Thanks
I’m just seeing now that the snippet works with the 3.3.14 < Customizr < 3.3.27
backing up a previous version.
Hello Jordi,
didn’t get. Did you used this snippet
https://gist.github.com/eri-trabiccolo/a318a1e98247e6cd7f19#file-recent_posts_slider_for_customizr-php
?
And it doesn’t work?
Yes, this one and it doesn’t work. (it seems the same. it is the one that allows us to put images before and after. It is the one that we found a bug some weeks ago)
I’m creating a temporary manual slider until we can solve it.
it’s weird. It happened when I updated
I’m sorry but I’m not able to reproduce the “not working” bug.
There was a small bug with the excerpt and now I’ve fixed it (snippet updated above).
I also tried the snippet I gave and it still works here.
Maybe try again the snippet above and see if it works, otherwise please elaborate a little more the “not working” bug in the wp.org topic 😀
I just updated the Addthis plugin and noticed that the front slider is displaying a code instead of the post summary. This code appears on each slide (Changing the URL and title, dependind on post):
<div class='at-above-post-arch-page-recommended addthis_default_style addthis_toolbox …
This appears only when the plugin is active. I posted a support topic on their plugin in case there's an error on their part.
Hello Claudia,
thanks for reporting this.
Snippet updated.
N.B. Before updating to the new Customizr version check here if this snippet has been updated ’cause it will not work properly with Customizr > 3.3.26
Rocco,
Do I need to add the pics to the slider each time or will it just take the image from the post? The reason I ask is because I went back and deleted the previous images from the newly created slider and now when the slider has disappeared from the home page.
Rocco!
I don’t want to use the tag “front-slider” each time I post. Is there anyway I could make this work with a different tag?
I’ve been trying to edit the code from above but I am the newest of newbies to CSS. I figured if I could find “front-slider” in the code and replace it with the tag I wanted, everything would work… So far I am wrong.
Hello Kelly,
you should just replace `front-slider` :
` ‘tag’ => “front-slider”,` (line19 on the snippet above)
with the tag you want and should be fine.
Isn’t so?
Thanks Rocco,
I think I may have solved it! At first I did what you said and it didn’t work but then I went into the customize section under appearance and chose the newly created slider.
I appreciate the help!
Will you update this snippet so it’d work on future theme versions? I love this feature and I’d like it to work on 3.3.15 onwards ->>
Hi,
what exactly doesn’t work in 3.3.15 ?
Doesn’t slide? If that’s the problem, I’ve updated the snippet to make it work with 3.3.15.
If not.. dunno works here. 😉
Let me know
Hi, With the new theme update, the slider changes images abruptly, it’s not as smooth as it was before. Is that something related to the code?
Ooops, Nevermind, please disregard the last question. The new snippet works fine, i thought it wasn’t updated for the new update, since it says at the beginning: “Updated March 2015: This snippet now works only with Customizr > 3.3.12 and Customizr-Pro > 1.0.17”
You’re right, I update the notice 😉
Thanks for reporting this!
After update and snippet, slider is appearing in every post and page, not only in the home page, even though the slider is turned off in every post. Is there any way to fix this?
Hi Claudia,
thanks for reporting this. There was an error in the latest code. I’ve updated the snippet.
Could you double check?
Thanks
Thanks! I’ve made the change with the new snippet and it works. Slider only shows up on the Home Page.
Hi Claudia,
glad to hear that!
Sorry for the inconvenience 😉
Hey Rocco,
The slider disappeared after the theme update, but after putting your new code it works fine.
The only thing is that, as before, the sticky post displays as the last post not the first. I have been looking what you told me in line 46 and read about the query, but i can’t figure it out
Hi Jordy,
the sticky thing is a little tricky, by default just the blog displays those as first. To achieve the same result you should do a custom query.
But for your needs, I’ve modified the code above a little bit.
Added line 211 `$slides = apply_filters(‘tc_post_slides’, ( !empty($slides) ) ? $slides : false, $img_size);`
small change on line 223 `return $slides;`
Then, just for you :P, add this snippet to your child-theme functions.php as well, and customize it they way you need 😉
https://gist.github.com/eri-trabiccolo/712a1681ca3a32d364aa#file-add_slides_recent_posts_slider-php
Hope this helps.
I had my difficulties trying to see new changes even though I cleared constantly my cache (and I have deactivated my cache plugins) but finally I could see the changes. JUST AWESOME man! Thanks so much. Really. Grazie mille. il tuo snippet sta laborando perfetto
Eheh, we finally did it 😀
Grazie a te 😉
Doesn’t it display as first?
The problem using the sticky post is that it will be displayed as first also in the blog, but it will be always the first if you don’t add any other sticky post 😀
About don’t display the link, just after line #79
put this:
This will avoid the button displaying 😉
No, it doesn’t displayed first even though appears as a sticky in my blog.
I have also put what you told me after line 79 and it worked but in the other post. It seems like the sticky is the last post, not the first.
Anyways, let me explain again what I would like to have cause I don’t know if I did a good job before.
What I want is not text, no excerp in the image. and no button if possible (but the button is not a priority)
Thanks
I forgot one thing
I would like less excerpt too, less words. I have tried to modify in the customizr editor/menu but it only affects the excerpt inside the blog, not the one in the slider
THANKS so much. I’m really wasting your time, hehe
hey,
Any idea why the sticky post doesn’t display first?
thanks
Hi Jordy,
sorry didn’t have the time to dig into this code, the new version is about to come and I have to rewrite it.
About the sticky-post, look at the line #46 of this snippet. That is where I retrieve the posts, so if you make your own query you can manage this kind of stuff, maybe excluding sticky posts from the query and add that specific post in head.
Start from here:
http://codex.wordpress.org/Class_Reference/WP_Query
hehehe
What I mean is that I would like apart from the images of the post, another image (no link to any post) that shows first in the slider
so imagine I have my 5 posts in my slider and before them (as first image) I have another image (the sixth) with no link attached.
I don’t think you refer to this in point 4, right? or do you? In any case, this is what I would like to achieve
Thanks so much. The snippet by itself is already amazing
Hi Jordi,
now I get 😀
as for now, isn’t very possible without making some important changes to the snippet.
Though a new version of the theme is about to be release and I have to change this snippet anyway. I’ll see if I can add this feature 😉
Ok, no prob. Thanks anyways.
I will keep visiting the website to see if you have include my idea on the new snippet. Thanks
I think the easiest way for now to do what I want is create a post that will be always posted first. Let’s see if I find a way. hahaha
sorry for the comments, hehe
the way I have is creating a sticky first post, and it works
the only issue is that I would like to have this post displaying first always and with no link to anything. Is that possible?
Thanks again and again
Hi Rocco,
It worked perfect for me. Now I have my posts displaying as you said. I have a question though.
I would like to display before the posts images another image. I’ve seen your point 4, but I’m not sure if you referred to the same thing. In any case I don’t get point 4.
Any help?
Hi Jordi,
sorry I don’t get what you mean with “before the posts images”.. Can you explain it a little more? 😀
My point 4 says that this snippet displays the image you set as featured image or one of the attachments in the post if no featured image is set. I added this new “option” which consists in add a new custom field (with a link to how to add it) named “slide_img”. The value of this new custom field must be the ID of the image you want to show in the slider.
Does this helps?
the thumbnail next to the original post are deleted after installing the code could you pleas help
Hi Salem,
thanks for reporting this!
You’re right, I re-added the smart load parser filter even if you didn’t use that feature.
Snippet updated.
Now should be fine 😉
Thnx for the fast reply XD
🙂
Hope the update fixed the issue.
Let me know if it didn’t 😉
I’m getting an error with this. I commented out line 18 ‘tag’=> “front-slider”. and it was all working yestarday. Now however I’m getting
Fatal error: Call to undefined method TC_post_thumbnails::tc_get_thumbnail_data() in /home1/k33k00/public_html/wp-content/themes/customizr Junior/functions.php on line 123
if I remove the the functions.php, which only has the above code in, it works. Also if I just delete the slider it works.
Any idea’s?
Hi Kieran,
thanks for reporting this!
I’ve update the snippet and now should work fine with the latest Customizr and Customizr-Pro versions.
Cheers
Awesome, thank you very much!
When I paste this code into the functions.php file in the Customizr Child theme you supply, my admin and home screen go blank and the only way to recover is to FTP in and delete the functions.php file. What gives? I’d really, really like to use this. but that result rather scares me!
Hi Dave,
probably you made some syntax error. Look here .
Great that worked! BUT now I face the following problem. Since the slider uses the post thumbnails, which has to be 270*250 px because of the themes, the slider images look pretty bad. Is there a way to set up a recent post slider with the possibility to upload images that have the slider size? And is it possible to just show the title and the read more button?
Hi Micha thanks.
About the fact it uses the post thumbnail which is 270×250, I don’t agree. If it happens to you then… it’s weird. Here were we tell that method to use the ‘slider’ size:
`TC_post_thumbnails::$instance->tc_get_thumbnail_data($img_size)`
and we get that $img_size, from the original TC_slider class.
So.. can you share the link of your site?
About non showing the text, just remove all the part with the variable “$text” involved and, where you set $slides[$id], replace
‘text’ => $text,
with
‘text’ => ”,
Hope this helps
Hi Rocco,
the text problem is solved, thanks! But the images…I uploaded the thumbnail images for the post in 270*250. Maybe you misunderstood me, sorry english is not my mother language. The slider shows the images with the right dimensions, but due to the fact that it seems to use the small thumbnail images, the images are very out of focus. See yourself: http://www.ledertramp.de/
I uploaded the pictures to my media in the slider dimensions, too but I can’t make the slider take those…is it even possible?
Hi Micha,
don’t worry, english it’s not my mother language too 🙂 and I don’t think your is bad, or at least not worse than mine ;). And yes you’re right I misunderstood you. And yes you’re right, there’s an issue if the uploaded featured image is small. That’s ’cause wordpress doesn’t generate a bigger version (which is good).
I will find a workaround for this, stay tuned, and thanks for reporting this!!
Cheers,
Rocco
Hi Micha,
snippet updated.
sorry I’m new at css, do i need to change anything for my site specifically when i copy the code into functions.php or is it good to go ?
Hi anna.
You have to put this code into the child-theme functions.php .
Did you create a child-theme?