<?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: Google web font not loading when using Gravity forms shortcode in header</title>
		<link>https://legacy.forums.gravityhelp.com/topic/google-web-font-not-loading-when-using-gravity-forms-shortcode-in-header</link>
		<description>Gravity Support Forums Topic: Google web font not loading when using Gravity forms shortcode in header</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:41:56 +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/google-web-font-not-loading-when-using-gravity-forms-shortcode-in-header" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Google web font not loading when using Gravity forms shortcode in header"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-web-font-not-loading-when-using-gravity-forms-shortcode-in-header#post-150288</link>
			<pubDate>Tue, 19 Feb 2013 13:20:18 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">150288@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What is the URL to the page where this form is embedded?&#60;/p&#62;
&#60;p&#62;When you include a Gravity Form like that, you may need to enqueue the Gravity Forms scripts and styles using gravity_form_enqueue_scripts &#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;
&#60;p&#62;More about embedding a form via function call:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form#Function_Call&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form#Function_Call&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Finally, there is a JavaScript event gform_page_loaded &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_page_loaded&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_page_loaded&#60;/a&#62; which is normally used to ensure fonts are loaded after a Gravity Form is reloaded.  The example on that page is for Cufon, but the approach would be the same for Google fonts.&#60;/p&#62;
&#60;p&#62;I would start with gravity_form_enqueue_scripts since you are embedding the form outside the loop.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>1-phantomdentist on "Google web font not loading when using Gravity forms shortcode in header"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/google-web-font-not-loading-when-using-gravity-forms-shortcode-in-header#post-150257</link>
			<pubDate>Tue, 19 Feb 2013 12:37:29 +0000</pubDate>
			<dc:creator>1-phantomdentist</dc:creator>
			<guid isPermaLink="false">150257@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;When using&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo do_shortcode(&#38;#39;[gravityform id=&#38;quot;2&#38;quot; name=&#38;quot;Contact Mini&#38;quot; title=&#38;quot;false&#38;quot; description=&#38;quot;false&#38;quot;]&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;the google webfont &#34;Roboto Condensed&#34; does not load on page refresh. I have tried removing the echoed shortcode and the issue is fixed. If you navigate to any page there is no issue, only when refreshing a page you are already on using a refresh button or hitting f5. &#60;/p&#62;
&#60;p&#62;This issue occurs on windows 7 in Chrome v 24.0.1312.57. I can't replicate it in firefox, safari oe ie9&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!DOCTYPE html&#38;gt;
&#38;lt;!-- Add browser classes to html tag --&#38;gt;
&#38;lt;!--[if lt IE 7]&#38;gt;  &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;ie ie6 lte9 lte8 lte7&#38;quot;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if IE 7]&#38;gt;     &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;ie ie7 lte9 lte8 lte7&#38;quot;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if IE 8]&#38;gt;     &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;ie ie8 lte9 lte8&#38;quot;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if IE 9]&#38;gt;     &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt; class=&#38;quot;ie ie9 lte9&#38;quot;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if gt IE 9]&#38;gt;  &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt;&#38;gt; &#38;lt;![endif]--&#38;gt;
&#38;lt;!--[if !IE]&#38;gt; &#38;lt;html &#38;lt;?php language_attributes(); ?&#38;gt;&#38;gt; &#38;lt;![endif]--&#38;gt;

&#38;lt;!--[if lt IE 9]&#38;gt;
   &#38;lt;script&#38;gt;
      document.createElement(&#38;#39;header&#38;#39;);
      document.createElement(&#38;#39;nav&#38;#39;);
      document.createElement(&#38;#39;section&#38;#39;);
      document.createElement(&#38;#39;article&#38;#39;);
      document.createElement(&#38;#39;aside&#38;#39;);
      document.createElement(&#38;#39;footer&#38;#39;);
   &#38;lt;/script&#38;gt;
&#38;lt;![endif]--&#38;gt;

&#38;lt;head&#38;gt;
&#38;lt;!--
******************************************
Meta stuff
******************************************
--&#38;gt;
&#38;lt;meta charset=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;charset&#38;#39; ); ?&#38;gt;&#38;quot; /&#38;gt;
&#38;lt;meta name=&#38;quot;SKYPE_TOOLBAR&#38;quot; content =&#38;quot;SKYPE_TOOLBAR_PARSER_COMPATIBLE&#38;quot;/&#38;gt;
&#38;lt;title&#38;gt;&#38;lt;?php wp_title(&#38;#39;&#38;#39;);?&#38;gt;&#38;lt;/title&#38;gt;

&#38;lt;!--
******************************************
Link stuff
******************************************
--&#38;gt;
&#38;lt;link rel=&#38;quot;icon&#38;quot; type=&#38;quot;image/png&#38;quot; href=&#38;quot;&#38;lt;?php echo get_template_directory_uri(); ?&#38;gt;/images/favicon.png&#38;quot;/&#38;gt;
&#38;lt;link href=&#38;#39;http://fonts.googleapis.com/css?family=Roboto+Condensed&#38;#39; rel=&#38;#39;stylesheet&#38;#39; type=&#38;#39;text/css&#38;#39;&#38;gt;
&#38;lt;link href=&#38;#39;http://fonts.googleapis.com/css?family=Droid+Sans&#38;#39; rel=&#38;#39;stylesheet&#38;#39; type=&#38;#39;text/css&#38;#39;&#38;gt;
&#38;lt;link href=&#38;#39;http://fonts.googleapis.com/css?family=Droid+Serif&#38;#39; rel=&#38;#39;stylesheet&#38;#39; type=&#38;#39;text/css&#38;#39;&#38;gt;
&#38;lt;link rel=&#38;quot;profile&#38;quot; href=&#38;quot;http://gmpg.org/xfn/11&#38;quot; /&#38;gt;
&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; media=&#38;quot;all&#38;quot; href=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;stylesheet_url&#38;#39; ); ?&#38;gt;&#38;quot;/&#38;gt;
&#38;lt;link rel=&#38;quot;pingback&#38;quot; href=&#38;quot;&#38;lt;?php bloginfo( &#38;#39;pingback_url&#38;#39; ); ?&#38;gt;&#38;quot; /&#38;gt;

&#38;lt;!-- Add Wordpress head hook stuff --&#38;gt;
&#38;lt;?php wp_head();?&#38;gt;

&#38;lt;/head&#38;gt;

&#38;lt;!--
******************************************
Start of body
******************************************
--&#38;gt;
&#38;lt;body &#38;lt;?php body_class(); ?&#38;gt;&#38;gt;

	&#38;lt;div class=&#38;quot;wrapper-main&#38;quot;&#38;gt;

    &#38;lt;div class=&#38;quot;header-form&#38;quot;&#38;gt;
    	&#38;lt;?php echo do_shortcode(&#38;#39;[gravityform id=&#38;quot;2&#38;quot; name=&#38;quot;Contact Mini&#38;quot; title=&#38;quot;false&#38;quot; description=&#38;quot;false&#38;quot;]&#38;#39;); ?&#38;gt;
    	&#38;lt;a class=&#38;quot;form-tab&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;
    &#38;lt;/div&#38;gt;&#38;lt;!-- end header-form --&#38;gt;

    	&#38;lt;header class=&#38;quot;header&#38;quot;&#38;gt;
        	&#38;lt;div class=&#38;quot;utility-bar&#38;quot;&#38;gt;
            	&#38;lt;div class=&#38;quot;contact-info&#38;quot;&#38;gt;
				&#38;lt;?php
				if( function_exists(&#38;#39;get_field&#38;#39;) ) {
					if( get_field(&#38;#39;header_contact_details&#38;#39;,&#38;#39;options&#38;#39;) ) {
						echo do_shortcode( get_field(&#38;#39;header_contact_details&#38;#39;,&#38;#39;options&#38;#39;) );
					}
				}
				?&#38;gt;
                &#38;lt;/div&#38;gt;
            	&#38;lt;nav class=&#38;quot;nav-utility clearfix&#38;quot;&#38;gt;&#38;lt;?php wp_nav_menu( array( &#38;#39;theme_location&#38;#39; =&#38;gt; &#38;#39;menu-utility&#38;#39;, &#38;#39;container&#38;#39; =&#38;gt; &#38;#39;&#38;#39;) ); ?&#38;gt;&#38;lt;/nav&#38;gt;
            &#38;lt;/div&#38;gt;&#38;lt;!-- end utility-bar --&#38;gt;
        	&#38;lt;div class=&#38;quot;header-content&#38;quot;&#38;gt;
            	&#38;lt;a class=&#38;quot;logo&#38;quot; href=&#38;quot;&#38;lt;?php echo home_url(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php bloginfo(&#38;#39;name&#38;#39;); ?&#38;gt;&#38;lt;/a&#38;gt;
				&#38;lt;nav class=&#38;quot;nav-main&#38;quot;&#38;gt;&#38;lt;?php wp_nav_menu( array( &#38;#39;theme_location&#38;#39; =&#38;gt; &#38;#39;menu-main&#38;#39;, &#38;#39;container&#38;#39; =&#38;gt; &#38;#39;&#38;#39;) ); ?&#38;gt;&#38;lt;/nav&#38;gt;
            &#38;lt;/div&#38;gt;&#38;lt;!-- end header-content --&#38;gt;
        &#38;lt;/header&#38;gt;&#38;lt;!-- end header --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The font is loaded with css from style.css, rule as follows&#60;/p&#62;
&#60;p&#62;font:300 normal 35px 'Roboto Condensed', Arial, Helvetica, sans-serif; color:#00335F;&#60;/p&#62;
&#60;p&#62;I can give access to the development site if you cn provide an ip to unblock.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
