diff --git a/src/Block.php b/src/Block.php index dc60d8c..ebe0273 100644 --- a/src/Block.php +++ b/src/Block.php @@ -756,7 +756,7 @@ public function render($block, $content = '', $preview = false, $post_id = 0, $w $this->classes = $this->getClasses(); $this->style = $this->getStyle(); - $this->inlineStyle = $this->getInlineStyle(); + $this->inlineStyle = ! $this->preview ? $this->getInlineStyle() : ''; return $this->view($this->view, ['block' => $this]); }