Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jayowl

    (@jayowl)

    Its not coming into this statement.
    $this->images is returning null and cannot seem to trace why its not entering here but is in protected function srcset_attributes()


    protected function create_markup()
    {
    $img_attributes = $this->create_attributes($this->settings['attributes']);
    $markup = '<img ';
    if ( count($this->images) == 1 ) :
    $markup .= 'src="'.$this->images[0]['src'].'"';
    else:
    $markup .= 'srcset="'.$this->srcset_attribute().'" ';
    endif;
    $markup .= $img_attributes;
    $markup .= '>';
    return $markup;
    }
    }

    Plugin Author stefanledin

    (@stefanledin)

    Hi Joel!
    Which is the other plugin? Can’t find anything called WP Image?
    The output looks fine. Depending on the browser, you doesn’t always see the src attribute in the source.

    Thread Starter jayowl

    (@jayowl)

    Fixed it. Sorry, the child twentysixteen theme I created wasn’t using wp_footer which calls the wp_enqueue_media(). That was it.

    Thanks!

    Plugin Author stefanledin

    (@stefanledin)

    Okey, great!
    Thanks for being a user 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image Widget in Internet Explorer Not Working’ is closed to new replies.