• Have used the extension for several years but after the latest update it does not work. I had coded so it showed different images depending on the screen size but it is no longer possible.

    Must use another extension

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author simonpedge


    Hi, can you please point me to the support thread you opened for this so I can look into this issue and hopefully find a fix?

    Thread Starter Ola Forslin


    There is no thread.
    Since you removed all possibilities for code, I saw no reason to continue using it.
    I used follow the coding to determine the source
        <source media="(min-width: 800px)" srcset="png">
        <source media="(max-width: 768px)" srcset="webp">
        <img src="png"/>
    Plugin Author simonpedge


    Add the following to your ‘functions.php’ file in your theme:

    function gmt_allow_iframes_filter( $allowedposttags ) {
    	// Only change for users who can publish posts
    	if ( !current_user_can( 'publish_posts' ) ) return $allowedposttags;
    	// Allow following tags and attributes
    	$allowedposttags['picture'] = array();
    	$allowedposttags['source'] = array(
    		'media' => true,
    		'srcset' => true,
    	return $allowedposttags;
    add_filter( 'wp_kses_allowed_html', 'gmt_allow_iframes_filter' );
    • This reply was modified 2 months ago by simonpedge.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this review.