Home Forums Basel support forum Instagram widget not loading images

Instagram widget not loading images

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #142593

    Jackal
    Participant

    Hi! I have updated the theme to latest version and yet Instagram widget is not loading images! I’m receiving the following notification instead “Instagram has returned invalid data.”

    Would you help me to solve this issue.

    Regards,

    Attachments:
    You must be logged in to view attached files.
    #142613

    Hello,

    Please add this code to the functions.php of the child theme:

    add_filter( 'basel_intagram_user_ajax_load', '__return_true' );

    Next, find the file

    basel\inc\shortcodes\shortcodes.php

    Find this line:

    if ( is_wp_error( $media_array ) && $media_array->get_error_code() === 'invalid_response_429' ) {

    and replace with this line:

    if ( is_wp_error( $media_array ) && ( $media_array->get_error_code() === 'invalid_response_429' || apply_filters( 'basel_intagram_user_ajax_load', false ) ) ) {

    If you have any difficulties, please provide you site admin access as well as FTP access to the private area.

    Best Regards

    #142616

    Jackal
    Participant

    Hi! Thank you. It works fine now.

    Are you going to fix this with next update, I’m using a child theme how can I keep changes from being removed by updates?

    Kind regards,

    #142627

    Hello,

    Yes, this will be fixed in the nearest update.

    You need to update the parent theme only and it would not influence your child theme. Here is the instruction on how to update: https://xtemos.com/docs/basel/update-theme/

    Best Regards

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