Skip to content

Commit

Permalink
switch from intrinsic layout to fixed-height layout
Browse files Browse the repository at this point in the history
Implements change suggested by @westonruter in #62 (comment)
  • Loading branch information
benlk committed Mar 2, 2020
1 parent 42bab35 commit baf767e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions inc/amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ function get_pym_ampiframe( $src, $atts = array() ) {
<div class='<?php echo esc_attr( $actual_classes ); ?>' id='<?php echo esc_attr( $id ); ?>'>
<amp-iframe
src='<?php echo esc_url( $src ); ?>'
layout='intrinsic'
width='1200'
height='1200'
layout='fixed-height'
height='200'
sandbox='<?php echo esc_attr( $sandbox ); ?>'
frameborder='0'
resizable
Expand Down Expand Up @@ -136,4 +135,4 @@ function get_pym_ampiframe( $src, $atts = array() ) {
*/
function is_amp() {
return function_exists( 'is_amp_endpoint' ) && is_amp_endpoint();
}
}

0 comments on commit baf767e

Please sign in to comment.