Loading images through CDN For Smash Balloon Instagram Feed

Share Now

#Add this code on functions.php file
*** we are using g statically CDN

// INSTAGRAM FEED CDN ISSUE FIX
function sb_change_for_cdn() {
    ?>
    <script>
        window.sb_instagram_js_options.resized_url = 'https://cdn.statically.io/sites/sitename.com/wp-content/uploads/sb-instagram-feed-images/';
    </script>
    <?php
}
add_action( 'wp_footer', 'sb_change_for_cdn', 99 );
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert