Skip to content

Commit 6ce73cc

Browse files
Disable AMP lightbox for google chart only #786
1 parent 3e8797c commit 6ce73cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Module/Frontend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public function renderChart( $atts ) {
340340

341341
$amp = Visualizer_Plugin::instance()->getModule( Visualizer_Module_AMP::NAME );
342342
if ( $amp && $amp->is_amp() ) {
343-
return '<div id="' . $id . '"' . $this->getHtmlAttributes( $attributes ) . '>' . $amp->get_chart( $chart, $data, $series, $settings ) . '</div>';
343+
return '<div data-amp-auto-lightbox-disable id="' . $id . '"' . $this->getHtmlAttributes( $attributes ) . '>' . $amp->get_chart( $chart, $data, $series, $settings ) . '</div>';
344344
}
345345

346346
// add chart to the array

0 commit comments

Comments
 (0)