Discussion on Flatsome | Multi-Purpose Responsive WooCommerce Theme

Discussion on Flatsome | Multi-Purpose Responsive WooCommerce Theme

Cart 267,834 sales
Recently Updated
Well Documented

UX-themes supports this item

Supported

This author's response time can be up to 2 business days.

28330 comments found.

Hi, The ux instagram feed is not working. How could I fix “Instagram has returned invalid data.” The code @nuffstuff has provided is not working for me. Thanks

Mini Cart widget not showing in Checkout/Cart Pages??

Hi,

2 questions:

-Where do I find the enable/disable breadcrumb during checkout? So how to get rid of Cart – Checkout Detail – Order Finished.

- How do I remove the catrgory “Ungategorized” from the catrgories menu?

Regards, Arjan

The slider height is suddenly doubled…

I don’t know why but the slider height is suddenly doubled. If I made a simple slider as below, the actual slider is displayed with a doubled height (300px + 300px), as you can see at https://www.watchair.tv/sliders-2/ , where the top area is the one I intended, while I have no idea why the bottom area was created.

I disabled my plugins and changed my templates. But nothing works. Please help me!

[ux_slider bg_color=”#32b4b4”]

[ux_banner height=”300px”]

[text_box position_x=”50” position_y=”50”]

THIS IS A SIMPLE BANNER Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

[/text_box]

[/ux_banner]

[/ux_slider]

If I drop down the 4wd tab and click on one of the options…say Troopy Fit Outs – when the page opens its hard to scroll up or down from the point where the page opens. A real pain – can this be fixed?

https://www.drifta.com.au/

Feed stop working after update ‘Instagram has returned invalid data.’.

Please help.

i just updated my theme to latest version and now ux builder is everytime in stuck! I tried all steps at https://docs.uxthemes.com/article/202-missing-customizer-or-ux-builder. no problem found, still not working, what can I do? Please help!

Hello. I need to translate the ‘Total will be calcuated in Cart’ text in the minicart dropdown/widget (which has a spelling mistake by the way). Where do I do this please? I can’t find it in the theme po file.

Any help on this please?

Please!! Update and fix the Instagram issue!

@Vector_Maison

I managed to temporarily fix my Instagram feed by replacing the code in flatsome/inc/shortcodes/ux_instagram_feed.php. Replace the entire flatsome_scrape_instagram function with the following code:

function flatsome_scrape_instagram( $username ) {
    $username = strtolower( $username );
    $username = str_replace( '@', '', $username );
    $transient_name = 'instagram-a6-' . sanitize_title_with_dashes( $username );
    $instagram = get_transient( $transient_name );

    if ( false === $instagram ) {

        $remote = wp_remote_get( 'http://instagram.com/' . trim( $username ) );

        if ( is_wp_error( $remote ) ) {
            return new WP_Error( 'site_down', esc_html__( 'Unable to communicate with Instagram.', 'flatsome-admin' ) );
        }

        if ( 200 != wp_remote_retrieve_response_code( $remote ) ) {
            return new WP_Error( 'invalid_response', esc_html__( 'Instagram did not return a 200.', 'flatsome-admin' ) );
        }

        $shards      = explode( 'window._sharedData = ', $remote['body'] );
        $insta_json  = explode( ';</script>', $shards[1] );
        $insta_array = json_decode( $insta_json[0], true );

        if ( ! $insta_array ) {
            return new WP_Error( 'bad_json', esc_html__( 'Instagram has returned invalid data.', 'flatsome-admin' ) );
        }

        if ( isset( $insta_array['entry_data']['ProfilePage'][0]['user']['media']['nodes'] ) ) {
            $images = $insta_array['entry_data']['ProfilePage'][0]['user']['media']['nodes'];
        } else {
            return new WP_Error( 'bad_json_2', esc_html__( 'Instagram has returned invalid data.', 'flatsome-admin' ) );
        }

        if ( ! is_array( $images ) ) {
            return new WP_Error( 'bad_array', esc_html__( 'Instagram has returned invalid data.', 'flatsome-admin' ) );
        }

        $instagram = array();

        foreach ( $images as $image ) {
            $image['thumbnail_src'] = preg_replace( '/^https?\:/i', '', $image['thumbnail_src'] );
            $image['display_src']   = preg_replace( '/^https?\:/i', '', $image['display_src'] );

            if ( isset( $image['thumbnail_resources'] ) && is_array( $image['thumbnail_resources'] ) ) {
                $image['thumbnail'] = set_url_scheme( $image['thumbnail_resources'][0]['src'] ); // 150x150
//                $image['thumbnail'] = set_url_scheme( $image['thumbnail_resources'][1]['src'] ); // 240x240
                $image['small']     = set_url_scheme( $image['thumbnail_resources'][2]['src'] ); // 320x320
//                $image['thumbnail'] = set_url_scheme( $image['thumbnail_resources'][3]['src'] ); // 480x480
//                $image['thumbnail'] = set_url_scheme( $image['thumbnail_resources'][4]['src'] ); // 640x640
            } else {
                $image['thumbnail'] = $image['small'] = $image['thumbnail_src'];
            }

            $image['large'] = $image['thumbnail_src'];

            if ( $image['is_video'] == true ) {
                $type = 'video';
            } else {
                $type = 'image';
            }

            $caption = __( 'Instagram Image', 'flatsome-admin' );
            if ( ! empty( $image['caption'] ) ) {
                $caption = $image['caption'];
            }

            $instagram[] = array(
                'description' => $caption,
                'link'        => trailingslashit( '//instagram.com/p/' . $image['code'] ),
                'time'        => $image['date'],
                'comments'    => $image['comments']['count'],
                'likes'       => $image['likes']['count'],
                'thumbnail'   => $image['thumbnail'],
                'small'       => $image['small'],
                'large'       => $image['large'],
                'original'    => $image['display_src'],
                'type'        => $type,
            );
        }

        // Do not set an empty transient, helps catching private or empty accounts.
        if ( ! empty( $instagram ) ) {
            $instagram = base64_encode( serialize( $instagram ) ); //100% safe - ignore theme check nag
            set_transient( $transient_name, $instagram, apply_filters( 'null_instagram_cache_time', HOUR_IN_SECONDS * 2 ) );
        }
    }

    if ( ! empty( $instagram ) ) {
        return unserialize( base64_decode( $instagram ) );
    } else {
        return new WP_Error( 'no_images', esc_html__( 'Instagram did not return any images.', 'flatsome-admin' ) );
    }
}

This worked for me. It seems Instagram have been making some sneaky changes to their API.

I’m still waiting for a reply about if saving pages as templets is possible (import exporting them as an option). Not just WooCommerce product pages.

For everyone looking for support the Author wrote earlier in the thread the following method for receiving support.

Please go to WP-Admin > Flatsome > Help & Guides to send us a stupport ticket. That’s the correct way to get support :) Include a link to your site if possible.

is it possible to whitelabel this theme?

The instagram feed on my website has stopped working, as someone mentioned previously it says “Instagram has returned invalid data.”—how can we fix this?

Hello, Instagram feed stopped working after updates. Message displayed: Instagram has returned invalid data.

Any fix available?

Hi my support time has expired, but I’d like to know if it’s possible to help. When I click “add to cart” or the “bag icon” it takes a lot of time for the cart to update (add the item on the dropdown menu and confirm it has been added). Many customers have been complaining about the slowliness of bying process and giving up on mobile (because mobile customers seems to be more impatient and also screen is smaller and usually not on wi-fi).

I’d like to know if it’s the theme that’s making it slow. Because if it’s not then I might need to ask a friend to help me since I am no programmer and don’t understand where the problem is. Or if you could help me identify what the problem might be so I can ask for help more directly I would apreciate a lot!

Website is www.banilla.com.br and love Flatsome since I started using it! Thanks for the awesome theme, I always recommed for my friends! =)

Hi! Still no news on “Instagram has returned invalid data.”?!? 10x

Hi,

Same here on our home page, the Instagram feed has stoped working:

INSTAGRAM HAS RETURNED INVALID DATA

Is there a quick fix for this because it has broken the design of our E-shop page. It’s not the first time there is problems with instagram feed….

Thanks

I asked this before. Is anyone going to provide an answer to it? I need to make a decision soon:

I have a pre-sale question. I would like to use the vertical tab and have a lot of tabs to create, say 50. I want to know if I click on a tab close to the bottom, say number 43, will this take me back to the start of the tab content at the top or I have to scroll up?

Yesterday it was OK, Today im getting: Instagram has returned invalid data.

Wonder if that’s issue with Instagram itself or not.

It does not seem to work on demo page either:

http://flatsome3.uxthemes.com/elements/instagram-feed/

Instagram is not working ”Instagram has returned invalid data.” How this problem can be fixed, please? Thank you very much.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve ThemeForest.

Sure, take me to the survey