Php and Javascript in Wordpress - a little assistance please?
I am trying to put in a line of Javascript into the header information in Wordpress - but it's written in php.
I know I have to use the "echo" command and have been messing with it for 4 hours now.
Now - I'm just plain begging for help.
The code looks like this:
-----------------------------------------------------------
echo $output_line;
$seo_meta_tags = get_option( "gn_seo_meta_tags" );
if ( $seo_meta_tags == 'on' )
{
$seo_meta_desc = get_option( "gn_seo_meta_desc" );
$seo_meta_keyw = get_option( "gn_seo_meta_keyw" );
$seo_meta_author = get_option( "gn_seo_meta_author" );
$output_line =
' <meta name="keywords" content="' . $seo_meta_keyw . '" />' . "\n" .
' <meta name="description" content="' . $seo_meta_desc . '" />' . "\n" .
' <meta name="author" content="' . $seo_meta_author . '" />' . "\n";
echo $output_line;
}
---------------------------------------------------------------
That's just a small part of the header.php code and I am trying to insert a line of javascript sort of like this...
<script type="javascript"><src="http://whatever_source_is"></script>
Like I said - I have been at it for 4 hours or so and cannot get anything to work.
Any ideas?
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."
Join the next generation affiliate marketplace today