<?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: Custom CSS of GF in Custom Post Metabox - not working</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-css-of-gf-in-custom-post-metabox-not-working</link>
		<description>Gravity Support Forums Topic: Custom CSS of GF in Custom Post Metabox - not working</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:41:01 +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/custom-css-of-gf-in-custom-post-metabox-not-working" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Custom CSS of GF in Custom Post Metabox - not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-css-of-gf-in-custom-post-metabox-not-working#post-35774</link>
			<pubDate>Tue, 20 Sep 2011 16:18:49 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">35774@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You shouldn't have to wrap it in a function the way the user in that post has done.  The enqueue function itself is a function.  But the user is correct in wrapping it in an if statement so it only executes the enqueue in certain situations.  &#60;/p&#62;
&#60;p&#62;You only want it happening on the page or post you need it to display on, unless it's part of the overall theme design then you can execute it on every page load.  &#60;/p&#62;
&#60;p&#62;It sounds like however you had it implemented before wasn't correct and that changing the code to use the other users example corrected whatever you were doing wrong.&#60;/p&#62;
&#60;p&#62;The ideal place for the function call is in your themes functions.php file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sammet on "Custom CSS of GF in Custom Post Metabox - not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-css-of-gf-in-custom-post-metabox-not-working#post-35727</link>
			<pubDate>Tue, 20 Sep 2011 01:50:09 +0000</pubDate>
			<dc:creator>sammet</dc:creator>
			<guid isPermaLink="false">35727@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi All!&#60;/p&#62;
&#60;p&#62;At the moment I got it working thanks to the comments by member dwenaus &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/site-documentation-needs-area-for-comments-please?replies=2#post-35726&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/site-documentation-needs-area-for-comments-please?replies=2#post-35726&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is this the right way? If so - I think it would be a good idea to update the documentation so more people will find the solution more easily.&#60;/p&#62;
&#60;p&#62;Please, let me and the rest of community know whats currently right.&#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
Sammet
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sammet on "Custom CSS of GF in Custom Post Metabox - not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-css-of-gf-in-custom-post-metabox-not-working#post-35725</link>
			<pubDate>Tue, 20 Sep 2011 01:24:23 +0000</pubDate>
			<dc:creator>sammet</dc:creator>
			<guid isPermaLink="false">35725@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi again Carl!&#60;/p&#62;
&#60;p&#62;Thanks for quick answer. Awesome. &#60;/p&#62;
&#60;p&#62;I tried to do as you suggest.  Unfortunately it still does not work.&#60;/p&#62;
&#60;p&#62;However, in your commment you say I should put the code into the functions.php file, while at the documentation page it says in the theme's header.php file just before the wp_head() .&#60;/p&#62;
&#60;p&#62;Which one is the right one? I have tried both. Please, consult my screenshots at &#60;/p&#62;
&#60;p&#62;1. This is how I have inserted the code you gave me. Is this right? Maybe I have placed or written it wrong. Please, look at: &#60;a href=&#34;http://www.diigo.com/item/image/m63c/q15d&#34; rel=&#34;nofollow&#34;&#62;http://www.diigo.com/item/image/m63c/q15d&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I was wondering if I should not put the code in the Custom Post php template instead? Just an idea - I am totally unfamiliar with PHP.&#60;/p&#62;
&#60;p&#62;2. This is how it looks when there is only one form in the Metabox. &#60;a href=&#34;http://www.diigo.com/item/image/m63c/a12g&#34; rel=&#34;nofollow&#34;&#62;http://www.diigo.com/item/image/m63c/a12g&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;3. This is how the form looks like in the Metabox when there are two forms on the same page. One in WP Main Editor and one in the Metabox.&#60;br /&#62;
&#60;a href=&#34;http://www.diigo.com/item/image/m63c/d3n5&#34; rel=&#34;nofollow&#34;&#62;http://www.diigo.com/item/image/m63c/d3n5&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I hope you can help sorting out some of the doubts ;-)&#60;/p&#62;
&#60;p&#62;Thanks again!&#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
Sammet
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Custom CSS of GF in Custom Post Metabox - not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-css-of-gf-in-custom-post-metabox-not-working#post-35694</link>
			<pubDate>Mon, 19 Sep 2011 19:05:10 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">35694@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is a WordPress issue, not a Gravity Forms issue.  The CSS and Javascript for Gravity Forms are not being enqueued when you insert the shortcode into a custom field like that.  WordPress only allows you to enqueue scripts and CSS at certain points in the WordPress page execution life cycle.&#60;/p&#62;
&#60;p&#62;If you are going to do this you are going to need to manually enqueue the necessary scripts and CSS for that form by adding the necessary enqueue function calls to your themes functions.php file.  &#60;/p&#62;
&#60;p&#62;You can read more about the enqueue function call here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sammet on "Custom CSS of GF in Custom Post Metabox - not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-css-of-gf-in-custom-post-metabox-not-working#post-35674</link>
			<pubDate>Mon, 19 Sep 2011 16:38:56 +0000</pubDate>
			<dc:creator>sammet</dc:creator>
			<guid isPermaLink="false">35674@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi All!&#60;/p&#62;
&#60;p&#62;I have a Custom Post that I call Books.&#60;br /&#62;
To that custom post Books I have created a Metabox that I call OrderBox.&#60;br /&#62;
To the OrderBox  I have added a Text Area Field.&#60;br /&#62;
Into that Text area I insert Gravity Form shortcodes to display different  product (Books) forms . &#60;/p&#62;
&#60;p&#62;Then I create Custom Css to style the form.&#60;/p&#62;
&#60;p&#62;My problems:&#60;br /&#62;
Data picker is not working&#60;br /&#62;
Some ready classes are not taking effect&#60;/p&#62;
&#60;p&#62;The strange thing:&#60;br /&#62;
When adding the same or even an another GF,  but into the WP main editor - everything is working! The Datepicker shows up and all the Ready classes and CSS are perfect! Both the form in the Metabox AND the form in the WP Main editor are working. They are displayed on the same page.  &#60;/p&#62;
&#60;p&#62;But when I delete the GF shortcode from the WP Main Editor, all the styling and the datepicker are gone from the form in the Metabox.&#60;/p&#62;
&#60;p&#62;What is happening here? It should not be a Theme or Plugin conflict, since it is working most of the times or? &#60;/p&#62;
&#60;p&#62;Happy for all help and tips!&#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
Sammet
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
