Hi Guys,

This modification to my site has been long over due and I come to you in assistance.

(since I can't post a jpg on forum topic, please refer to this file: http://www.happygecko.net/site_code.jpg)

Basically, I need to put a 728 ad, JavaScript code where the red circle indicates. It is not a themed region, but has two other div containers, the first calling the logo per the theme I am using (Simply Modern), and the other the primary menu, which hosts the search and profile information. My question is, how to I call the JavaScript tag into the middle of the two?

Previously I've gotten the response to create a themable regions where I can then add blocks. If this is the best course then I would need to find a way to bring the primary menu call down to the themed region and the logo into the themed region. Incidentally there is a header region already themed, but I am not sure on how to bring the other two elements down into it.

Praying for help,
-Ben

Comments

raiyne’s picture

Adding my own div container to the theme's page.tpl.php file called 728ad and then adding the javascript code sorta works:

See: http://www.happygecko.net/site_code_2.jpg

However it pushed the primary links container down. Even if I shorten up the ad (width wise for testing) and give it space to jump back up it still stays down. Any thoughts on proper formatting?

<div id="top-container">
    <div id="squeeze-top">
      <div id="top-center">
        <div id="logo-title">
            <?php if ($logo) { ?>
                <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>"> <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" /> </a>
            <?php } ?>
          </div><!-- /logo-title -->
		  
		  <div id="728ad">
            <script type="text/javascript"><!--
			google_ad_client = "pub-67000454353454988";
			/* MYSITE_v2_728x90 */
			google_ad_slot = "318603454545";
			google_ad_width = 728;
			google_ad_height = 90;
			//-->
			</script>
			<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script>
          </div>
		  
		  
          <?php if (isset($primary_links) ) { ?>
            <div id="primarymenu">
            <?php if (isset($primary_links)) : ?>
              <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
            <?php endif; ?>
            <?php print $search_box; ?>
			<br>
            <?php
			if ($user->uid) {
			  // The following line will display the username you are logged in as.
			  $userpage = drupal_get_path_alias('user/' . $user->uid, $language->language);
			  print '<strong>Welcome ' . $user->name . '!</strong><br>' . l('View Profile', $userpage);
			} ?>

            </div>