Skip to content

Commit baf767e

Browse files
committed
switch from intrinsic layout to fixed-height layout
Implements change suggested by @westonruter in #62 (comment)
1 parent 42bab35 commit baf767e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

inc/amp.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ function get_pym_ampiframe( $src, $atts = array() ) {
105105
<div class='<?php echo esc_attr( $actual_classes ); ?>' id='<?php echo esc_attr( $id ); ?>'>
106106
<amp-iframe
107107
src='<?php echo esc_url( $src ); ?>'
108-
layout='intrinsic'
109-
width='1200'
110-
height='1200'
108+
layout='fixed-height'
109+
height='200'
111110
sandbox='<?php echo esc_attr( $sandbox ); ?>'
112111
frameborder='0'
113112
resizable
@@ -136,4 +135,4 @@ function get_pym_ampiframe( $src, $atts = array() ) {
136135
*/
137136
function is_amp() {
138137
return function_exists( 'is_amp_endpoint' ) && is_amp_endpoint();
139-
}
138+
}

0 commit comments

Comments
 (0)