Hello, I have been resizing the photos that will be featured on the slider to 760 x 360 and adding in black space on either side of the original photo so the entire photo will appear in case the aspect ratio of the original photo was off. I am wondering how I could edit the ‘flex-slider.php’ so that within the slider it adds “_slider.jpg” to the end of the filename of the photo it shows, instead of the featured image.
Example:
I create a new post and add the featured image. “dog.jpg”. it’s size is 400 x 360. I edit this in photoshop and add more canvas space to make it 760×360 and just make the extra space black, so that it will properly fit into the slider.. I name the file “dog_slider.jpg” and upload to the /uploads/ folder where it already added the featured image and it’s thumbnail variations for “dog.jpg”. Now my original photo is the photo without all the black space if they click on the image within the posts page.. and the “dog_slider.jpg” is only used to show up on the homepage slider.
What would I edit to make this happen? .. I’m guessing I just add ‘_slider’ somewhere within the “flex-slider.php” file. I am not sure where though.
if(has_post_thumbnail()){
$image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); ?>
<div data-thumb="<?php echo $image[0]; ?>" data-src="<?php echo $image[0]; ?>"
Thanks,
Jon