sorry not to get earlier
I have managed to make it work on a blank theme
but now I want to integrate it onto my test theme
I manage to have the css output in the header part if I add gravity_form_enqueue_scripts(2, true); to header.php just above the wp_header() function
but if I want to call it from the functions.php with a function like this one
add_action( 'after_setup_theme', 'icTemp_theme_setup' );
function icTemp_theme_setup()
{
add_action('wp_head', 'gr_add_headers');
}
function gr_add_headers()
{
// je rajoute les fonts google dont j'ai besoin
echo '<link href="http://fonts.googleapis.com/css?family=Open+Sans:200,400,700 " rel="stylesheet" type="text/css" />'.chr(13);
// je rajoute les scripts necessaire pour gravity forms
gravity_form_enqueue_scripts(2, true);
}
it is outputed on the footer while the google font reference is well outputed on the header part.
any idea why there is that behavior?
thank you in advance cause I'm a bit lost there
Posted 12 years ago on Sunday February 12, 2012 |
Permalink