Apply Image Resize on Frontend
-
I’ve setup some options for an image carousel within my theme TTOM options page and uploaded my images. How would I set a resize option to this for output on the frontend to reduce page load if the user was to upload a really large image.
Currently my code is below, how would I apply an image size to this?
<?php $image_1 = do_shortcode(‘[tom id=”image_1″]’);
if ( ! empty($image_1)) : ?>
<img src=”<?php echo $image_1 ?>” class=”img-responsive” />
<?php endif; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Apply Image Resize on Frontend’ is closed to new replies.