<?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: Set post CSS style from Post Submission form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/set-post-css-style-from-post-submission-form</link>
		<description>Gravity Support Forums Topic: Set post CSS style from Post Submission form</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:02:50 +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/set-post-css-style-from-post-submission-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Set post CSS style from Post Submission form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-css-style-from-post-submission-form#post-101091</link>
			<pubDate>Tue, 11 Dec 2012 01:15:57 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">101091@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there are reason for this: &#34;It does NOT carry on to set the custom body class.&#34;  It looks to me like &#34;womencare&#34; is being added to the body class:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[html]
&#38;lt;body class=&#38;quot;custom womencare womencare&#38;quot;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Additionally, I created a test post, here:&#60;br /&#62;
&#60;a href=&#34;http://www.fsa-cc.org/womencare/test-post-title-ignore/&#34; rel=&#34;nofollow&#34;&#62;http://www.fsa-cc.org/womencare/test-post-title-ignore/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And I see the &#60;a href=&#34;http://www.fsa-cc.org/wordpress/wp-content/gallery/website_elements/orangetexture.png&#34; rel=&#34;nofollow&#34;&#62;red brick background&#60;/a&#62;.  Screenshot: &#60;a href=&#34;http://minus.com/l3ff2mmMTJMtE&#34; rel=&#34;nofollow&#34;&#62;http://minus.com/l3ff2mmMTJMtE&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Maybe there is a cache issue which is preventing you from seeing the same thing?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hopborns on "Set post CSS style from Post Submission form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-css-style-from-post-submission-form#post-100966</link>
			<pubDate>Mon, 10 Dec 2012 16:04:31 +0000</pubDate>
			<dc:creator>hopborns</dc:creator>
			<guid isPermaLink="false">100966@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Each post category has a custom body class which uses category-specific styling to set the background color, etc.. Our Gravity Form uses a custom field to set the category. The custom field on DOES set the post to the correct category and correctly displays the post only on the sidebar assigned to that category. It does NOT carry on to set the custom body class.&#60;/p&#62;
&#60;p&#62;FYI, the site is built on Thesis, if that matters to choosing the correct custom field.&#60;/p&#62;
&#60;p&#62;I have temporarily removed the password so that you can experiment. I will have to put the password back by the end of the week.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Set post CSS style from Post Submission form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-css-style-from-post-submission-form#post-100945</link>
			<pubDate>Mon, 10 Dec 2012 14:44:20 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">100945@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How does the site know to use the color from the custom field as the post custom CSS?  Can you show us how you are doing that?&#60;/p&#62;
&#60;p&#62;Also, is the correct information being stored in the custom field?&#60;/p&#62;
&#60;p&#62;I could not submit as the page is password protected now, indicating it's live, I think.&#60;/p&#62;
&#60;p&#62;You could you use a custom body class for the post category, but that would be completely unrelated to Gravity Forms.  That would just add a body class for your post type, and then that body class would have category-specific styling.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hopborns on "Set post CSS style from Post Submission form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-css-style-from-post-submission-form#post-99783</link>
			<pubDate>Thu, 06 Dec 2012 18:37:04 +0000</pubDate>
			<dc:creator>hopborns</dc:creator>
			<guid isPermaLink="false">99783@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have created a GravityForm that lets users submit posts from the front end and defines the category that will be assigned to the post. I am trying to have the form set the final post's custom CSS style by using a Custom Field, but it's not working.&#60;/p&#62;
&#60;p&#62;The post submission form is at &#60;a href=&#34;http://www.fsa-cc.org/womencare-editor/&#34; rel=&#34;nofollow&#34;&#62;http://www.fsa-cc.org/womencare-editor/&#60;/a&#62;.  Once you submit a post, it will appear in the sidebar of the parent page for the category (&#60;a href=&#34;http://www.fsa-cc.org/womencare/)&#34; rel=&#34;nofollow&#34;&#62;http://www.fsa-cc.org/womencare/)&#60;/a&#62;. If you click on the post title in the sidebar, you'll go to the full post page (&#60;a href=&#34;http://www.fsa-cc.org/womencare/&#34; rel=&#34;nofollow&#34;&#62;http://www.fsa-cc.org/womencare/&#60;/a&#62;, followed by whatever you entered as the Title on the Gravity Form). For this category, the background should be a brick-red pattern (the same background that appears on &#60;a href=&#34;http://www.fsa-cc.org/womencare/)&#34; rel=&#34;nofollow&#34;&#62;http://www.fsa-cc.org/womencare/)&#60;/a&#62;. Instead it is displaying the teal background that is the site default.&#60;/p&#62;
&#60;p&#62;This section of the site (everything that has &#34;womencare&#34; in the URL) is not live, so you can try submitting a post for testing purposes. The form will be password protected once it goes live.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
