Generally speaking, in the header.php file of the theme you are working with.
Thread Starter
dyakub
(@dyakub)
ok, I’ve added some javascript code to it, but its not showing up on the site or the page source
Might be something helpful here:
Using Javascript
Thread Starter
dyakub
(@dyakub)
Thanks for the information…My syntax is exactly the same as wordpress requires it. So strange because other javascript in the header.php file displays correctly in the page source. When I save the page source as a .html file and manually put the javascript code that I want in the <head> section, it works perfectly; though this change is not permanent. If there was a way that you could be able to edit the html file of your entire site with wordpress adapting to the changes, it make blogging a lot easier. I’ll keep trying..Thanks anyway
Thread Starter
dyakub
(@dyakub)
Just a snippet of the header.php file; the code i want for it to load and will not display in the page source is in bold
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php if (is_home()) : ?>
<?php bloginfo('name'); ?>
-
<?php bloginfo('description'); ?>
<?php else : ?>
<?php wp_title('', 'false'); ?>
-
<?php bloginfo('name'); ?>
<?php endif; ?>
</title>
<strong><script type="text/javascript" src="/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="/js/jquery.juitter.js"></script>
<script type="text/javascript" src="/js/system.js"></script></strong>
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style<?php echo $artsee_color; ?>.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />