Home Forums WoodMart support forum Instagram (don't use the child theme)

Instagram (don't use the child theme)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #140500

    edujbareto
    Participant

    Instagram does not work on the page, can you help me? I don’t use the child theme

    #140519

    Hello,

    You will have to install and activate the child theme. You can take it in the folder with the theme from the Theme Forest.

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

    add_filter( 'woodmart_intagram_user_ajax_load', '__return_true' );

    Next, find the line:

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

    in

    woodmart/inc/shortcodes/instagram.php

    and replace with this line:

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

    Best Regards

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