Slider – changing image it shows

Home Forums WordPress Theme Support BresponZive Mag Slider – changing image it shows

This topic contains 2 replies, has 2 voices, and was last updated by  Raja CRN 6 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #2396


    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.

    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.

    			$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]; ?>"






    Raja CRN


    You don’t need to edit the code to fit the image in the slider. Upload the image with the resolution, you have mentioned up here and set as featured image in WP editor.

    The slider will automatically will show the featured image as slider images.

    Hope, I’ve got your question rightly.


Viewing 3 posts - 1 through 3 (of 3 total)

Only Verified Customer of this Theme Can post reply to this Support Topic! .