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?
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
<picture>
<source media="(min-width: 800px)" srcset="png">
<source media="(max-width: 768px)" srcset="webp">
<img src="png"/>
</picture>
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.