diff --git a/views/web_widgets_plugin_display_web_widgets.inc b/views/web_widgets_plugin_display_web_widgets.inc
index 261f9f9..43a9695 100644
--- a/views/web_widgets_plugin_display_web_widgets.inc
+++ b/views/web_widgets_plugin_display_web_widgets.inc
@@ -241,10 +241,10 @@ class web_widgets_plugin_display_web_widgets extends views_plugin_display_page {
     if ($attach_to[$display_id]) {
       $current_style = $this->get_option('embed_style');
       $current_style = empty($current_style) ? 'iframe' : $current_style;
-      $path = url($this->view->get_url(NULL, $this->get_path()), array('absolute' => TRUE));
-      $width = $this->get_option('width');
-      $height = $this->get_option('height');
-      $this->view->attachment_after .= web_widgets_render_embed_code($current_style, $path, $width, $height);
+      $variables['path'] = url($this->view->get_url(NULL, $this->get_path()), array('absolute' => TRUE));
+      $variables['width'] = $this->get_option('width');
+      $variables['height'] = $this->get_option('height');
+      $this->view->attachment_after .= web_widgets_render_embed_code($current_style, $variables);
     }
   }
 
