<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: How to add style sheet when using widget?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-add-style-sheet-when-using-widget</link>
		<description>Gravity Support Forums Topic: How to add style sheet when using widget?</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 13:58:11 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/how-to-add-style-sheet-when-using-widget" rel="self" type="application/rss+xml" />

		<item>
			<title>THATRYAN on "How to add style sheet when using widget?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-add-style-sheet-when-using-widget#post-23238</link>
			<pubDate>Thu, 14 Apr 2011 11:14:20 +0000</pubDate>
			<dc:creator>THATRYAN</dc:creator>
			<guid isPermaLink="false">23238@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Right thanks. I will do that in the future, was just using the widget for a temporary form and didn't want to alter my theme files. No biggie.&#60;br /&#62;
Thanks. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "How to add style sheet when using widget?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-add-style-sheet-when-using-widget#post-23225</link>
			<pubDate>Thu, 14 Apr 2011 10:13:15 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">23225@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try using the built-in Gravity Forms widget instead and you shouldn't have a problem. Or if you want to stick with the Yoast widget, here's how you would do it.&#60;/p&#62;
&#60;p&#62;When using a Gravity Form in a sidebar widget or embedding it anywhere using the function call, you need to manually enqueue the scripts and CSS by placing a short script block in your theme's functions.php file.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!is_admin()) {
    wp_enqueue_script(&#38;quot;gforms_ui_datepicker&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/jquery-ui/ui.datepicker.js&#38;quot;, array(&#38;quot;jquery&#38;quot;), &#38;quot;1.4&#38;quot;, true);
    wp_enqueue_script(&#38;quot;gforms_datepicker&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/datepicker.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.4&#38;quot;, true);
    wp_enqueue_script(&#38;quot;gforms_conditional_logic_lib&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/conditional_logic.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.4&#38;quot;, true);
    wp_enqueue_style(&#38;quot;gforms_css&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/css/forms.css&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Without this, the conditional logic scripts, datepicker script, form CSS and other elements needed for the full form functionality aren't loaded.&#60;/p&#62;
&#60;p&#62;You can find more information at the URL below&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>THATRYAN on "How to add style sheet when using widget?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-add-style-sheet-when-using-widget#post-23217</link>
			<pubDate>Thu, 14 Apr 2011 01:29:45 +0000</pubDate>
			<dc:creator>THATRYAN</dc:creator>
			<guid isPermaLink="false">23217@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to use the yoast widget to show a form, but it does not load the styles or scripts. So I added a shortcode filter to functions.php and put a shortcode,&#60;br /&#62;
&#60;code&#62;gravityform id=1 name=ContactUs ajax=true]&#60;/code&#62;&#60;br /&#62;
In a text widget, ajax works, but styles do not load. Any way to solve this?&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
