Forums

Sidebar editing / Java not working? (1 post)

  1. wcoastweasel
    Member
    Posted 2 years ago #

    I'm using the Marangal Green theme which has two sidebars. One sidebar is customizable via the widget section, whereas the other is not and can simply be modified by the code in Sidebar.php.

    First of all, numerous plugins I've tried (including a couple currently active such as Collapsing Archives & SocialGrid) only appear to work "half-assed." My archives don't collapse, nor do my SocialGrid icons appear. It would seem that the java functions aren't working? I'm not a pro, so that's only a guess. I've tried various options within each widget / plugin and the issue persists. I've also reverted back to the original Sidebar.php, readded them and again the issue persists.

    Secondly, how can I move some of these widgets from the right sidebar to the left? Sidebar.php allows me to enter/modify code for the left sidebar but without access to the dynamic sidebar code, who can I move them over. Is this even possible? I'd like half of my sidebar utilities on the left, and the other half of the right.

    Here's my preview site: http://www.westcoastweasel.com.previewdns.com

    Here's my sidebar.php code, thanks:

    <div id="<?php if (is_home()) { echo 'sidebar-home'; } else {echo 'sidebar'; } ?>">
    <div id="sidebar-right">
    <div class="top-pad"></div>
    <?php
    $feedburner_id = get_option('padd_feedburner_id');
    if (!empty($feedburner_id)) {
    ?>
    <div class="box box-feedburner">
    <h2>Subscribe To Our Latest News</h2>
    <div class="mid">

    <div class="interior">
    <p>Sign up to receive latest news</p>
    <form id="subscribe" action="http://www.feedburner.com/fb/a/emailverify" method="post" target="popupwindow" onsubmit="window.open('http://www.feedburner.com', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
    <span><input type="text" value="Email Address Here" onfocus="if (this.value == 'Email Address Here') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Email Address Here';}" name="email" id="txtemail" /></span>

    <input type="hidden" value="http://feeds.feedburner.com/~e?ffid=<?php $feedburner_id = get_option('padd_feedburner_id'); echo $feedburner_id; ?>" name="url" />
    <input type="hidden" value="News Subscribe" name="title" />
    </form>
    </div>
    </div>

    <?php
    $twitter_username = get_option('padd_twitter_username');
    if (!empty($twitter_username)) {

    ?>
    <div class="box box-twitter">
    <h2>Follow our " title="Twitter">Tweets</h2>

    <div class="interior">

    </div>

    </div>
    <?php
    }
    ?>

    </div>
    <div class="box box-adverts">
    <h2>Sponsors</h2>

    <div class="interior">
    <div class="row row-1">
    <?php
    $default = get_bloginfo('template_url') . '/images/your-ads-125x125.jpg';
    $sqbtn_1_img = get_option('padd_sqbtn_1_img_url');
    $sqbtn_1_url = get_option('padd_sqbtn_1_web_url');
    $sqbtn_2_img = get_option('padd_sqbtn_2_img_url');
    $sqbtn_2_url = get_option('padd_sqbtn_2_web_url');
    ?>
    "><img alt="Advertisement" src="<?php echo (!empty($sqbtn_1_img)) ? $sqbtn_1_img : $default; ?>" />
    "><img alt="Advertisement" src="<?php echo (!empty($sqbtn_2_img)) ? $sqbtn_2_img : $default; ?>" />
    </div>
    <div class="row row-2">
    <?php
    $sqbtn_3_img = get_option('padd_sqbtn_3_img_url');
    $sqbtn_3_url = get_option('padd_sqbtn_3_web_url');
    $sqbtn_4_img = get_option('padd_sqbtn_4_img_url');
    $sqbtn_4_url = get_option('padd_sqbtn_4_web_url');
    ?>
    "><img alt="Advertisement" src="<?php echo (!empty($sqbtn_3_img)) ? $sqbtn_3_img : $default; ?>" />
    "><img alt="Advertisement" src="<?php echo (!empty($sqbtn_4_img)) ? $sqbtn_4_img : $default; ?>" />
    </div>

    </div>

    </div>
    <?php
    }
    ?>

    <?php
    $youtube_code = get_option('padd_youtube_code');
    if (!empty($youtube_code)) {
    ?>
    <div class="box box-video">
    <h2>Featured Video</h2>
    <div class="mid">
    <div class="interior">
    <?php echo stripslashes($youtube_code); ?>
    <div class="clearer"></div>

    </div>
    </div>

    </div>
    <?php } ?>

    <?php
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Side Bar') ) {
    }
    ?>

    </div>

    <?php if (is_home()) : ?>
    <div id="sidebar-left">
    <div class="top-pad"></div>

    <div class="box1 box-blogroll">

    <div class="interior">

      <?php wp_list_bookmarks('categorize=1&before=
    • &title_before=<h2>&title_after=</h2>&category_before=</n>&category_before=</n>&after=
    • &orderby=url'); ?>

    </div>
    </div>
    </div> <!-- end sidebar1 --><?php endif; ?>
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic