• Hi, everybody. This is my first time posting in here and i have facing this an experience which is :

    1) How do i can create another sidebar (sidebar2) since this template only got 1 sidebar. I’ve already using several methods that been suggested while i am ‘google’ing around but i am still unsuccessful to create a new side bar. Anybody can help me?

    2) I’m facing this problem while doing wrapping the adsense code to the text trough this site http://www.garryconn.com/how-to-wrap-content-around-google-adsense-ads.php but i after i’ve followed this technique, my adsense still not wrap with the text. It only manage to appear in Example 1 as shown in that website.

    i’m putting the code as state below,and anybody can help me how to solved this issues?

    <h2 id="post-<?php the_ID(); ?>">" rel="bookmark"><?php the_title(); ?></h2>
    <p class="comments">"><?php comments_number('without comments','with one comment','with % comments'); ?></p>
    
    <div id=”adsense-wrap”>
    <script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXXXXXXXX";
    /* 200x200, created 9/9/08 */
    google_ad_slot = "0715843136";
    google_ad_width = 200;
    google_ad_height = 200;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></div>
    
    <div class="main">
    
    <?php the_content('Read the rest of this entry »'); ?>
    
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • As far as your extra sidebar goes why not just create another file for your sidebar and call it something like sidebar2.php.

    Then wherever you want to display that sidebar you will need to include the following code in your theme files:

    <?php include(TEMPLATEPATH."/sidebar2.php");?>

    You will obviously have to alter your CSS a little to adjust for the extra space. Probably this will mean changed in the main area to be slightly narrower to accomodate for the new sidebar.

    Thread Starter antudegil

    (@antudegil)

    sorry for asking more as i am a newbie. for no 1 problem, it already done and continued with the extra sidebar issue. i do not get it how to implement the <?php include(TEMPLATEPATH.”/sidebar2.php”);?> code with sidebar2.php and alter in the CSS file. could you brief it more or any website that explain about this? thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jounalist Template : How add sidebar & wrap adsense?’ is closed to new replies.