Title: Sidebar Issue
Last modified: August 20, 2016

---

# Sidebar Issue

 *  Resolved [endalldisease](https://wordpress.org/support/users/endalldisease/)
 * (@endalldisease)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/)
 * Hey I’ve got a sidebar problem.
 * I messed around with Sidebar1.php in the theme and it ended up making some mistakes,
   so what I’ve done is re-uploaded sidebar1.php and now the site looks strange.
 * [http://www.dinkelpowerskating.com](http://www.dinkelpowerskating.com)
 * Notice that the sidebar is now underneath the welcome page and on the left of
   the screen…
 * What I’m looking to do is the following:
    1. Move the sidebar back to the right
   side 2. Completely remove ‘Advertisement’ and the black behind it, so that it’s
   just ‘Classes’ and ‘Contact’ to it’s right.
 * Here’s the code for Sidebar1.php:
 *     ```
       <div class="sidebar1">   
   
       <div class="Block">
           <div class="Block-tl"></div>
           <div class="Block-tr"></div>
           <div class="Block-bl"></div>
           <div class="Block-br"></div>
           <div class="Block-tc"></div>
           <div class="Block-bc"></div>
           <div class="Block-cl"></div>
           <div class="Block-cr"></div>
           <div class="Block-cc"></div>
           <div class="Block-body">
       <div class="BlockHeader">
           <div class="l"></div>
           <div class="r"></div>
           <div class="header-tag-icon">
               <div class="t">Advertisement</div>
           </div>
       </div><div class="BlockContent">
           <div class="BlockContent-body">
       <?php include (TEMPLATEPATH . '/adsense120.php'); ?>
   
           </div>
       </div>
   
           </div>
       </div>
   
       <?php if (!sidebar(1)): ?>
       <div class="Block">
           <div class="Block-body">
       <div class="BlockHeader">
           <div class="l"></div>
           <div class="r"></div>
           <div class="header-tag-icon">
               <div class="t"><?php _e('Search', 'kubrick'); ?></div>
           </div>
       </div><div class="BlockContent">
           <div class="BlockContent-body">
       <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
       <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" style="width: 95%;" />
       <button class="Button" type="submit" name="search">
             <span class="btn">
                 <span class="l"></span>
                 <span class="r"></span>
                 <span class="t"><?php _e('Search', 'kubrick'); ?></span>
             </span>
       </button>
   
       </form>
   
           </div>
       </div>
   
           </div>
       </div>
       <div class="Block">
           <div class="Block-body">
       <div class="BlockHeader">
           <div class="l"></div>
           <div class="r"></div>
           <div class="header-tag-icon">
               <div class="t"><?php _e('Archives', 'kubrick'); ?></div>
           </div>
       </div><div class="BlockContent">
           <div class="BlockContent-body">
            <?php if ( is_404() || is_category() || is_day() || is_month() ||
                   is_year() || is_search() || is_paged() ) {
             ?>
             <?php /* If this is a 404 page */ if (is_404()) { ?>
             <?php /* If this is a category archive */ } elseif (is_category()) { ?>
             <p><?php printf(__('You are currently browsing the archives for the %s category.', 'kubrick'), single_cat_title('', false)); ?></p>
   
       			<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
       			<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p>
   
       			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
       			<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p>
   
       			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
       			<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p>
   
       			<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
       			<p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>‘%3$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p>
   
       			<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
       			<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p>
   
             <?php } ?>
   
             <?php }?>
   
             <ul>
             <?php wp_get_archives('type=monthly&title_li='); ?>
             </ul>
   
           </div>
       </div>
   
           </div>
       </div>
   
       <?php endif ?>
       </div>
       ```
   
 * If you can help me make this happen I’ll love you forever!
    Many thanks! -Mark

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/sidebar-issue-21/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sidebar-issue-21/page/2/?output_format=md)

 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567155)
 * Did you change any code in page.php or single.php? from the look of your site
   it’s as if there’s a div tag out of place in the template. Although doubtful 
   that the issue is in sidebar1.php if it’s the default code.
 *  Thread Starter [endalldisease](https://wordpress.org/support/users/endalldisease/)
 * (@endalldisease)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567175)
 * You know what, I think you’re right about the issue not being in sidebar1.php…
   because when I first loaded the template, the sidebar was on the right as it 
   should be. It wasn’t until I reloaded it that it went to the left.
 * I don’t recall changing any information in either of those pages – page.php or
   single.php.
 * Do you want me to reload those pages and see where it takes us?
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567215)
 * If You say you didn’t edit any templates it’s unlikely you’ll need to go there.
   Any recent theme or plugin updates? always need to rule that out right away.
 * >  because when I first loaded the template, the sidebar was on the right as 
   > it should be. It wasn’t until I reloaded it that it went to the left.
 * could you explain in more detail? not sure what you mean by reloaded.
 *  Thread Starter [endalldisease](https://wordpress.org/support/users/endalldisease/)
 * (@endalldisease)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567218)
 * I definitely did some modifications to the template along the way.
    Minor things
   but mods nonetheless.
 * When I say reloaded the template, I mean went into the Cpanel and replaced sidebar1.
   php with the one in the original template .rar file on my desktop.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567228)
 * So, if I follow, the default sidebar1.php template puts the sidebar on the right,
   but you modded it to be left?
    or is it that it goes left for some unknown reason,
   even though it’s the default code? Sorry, as you ccan see I’m not clear on what’s
   going on. i only saw it under your content, never actually left or right.
 * In any case, t could take a while to discover which div got moved, you’d have
   to compare what you have done to default.
 *  Thread Starter [endalldisease](https://wordpress.org/support/users/endalldisease/)
 * (@endalldisease)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567245)
 * Sidebar1.php template puts the sidebar on the right, but I modified it, not to
   be on the left, but my attempt was to remove the ‘advertising’ menu altogether.
   What I ended up doing was removing the word ‘Advertising’ but the black rectangle
   behind it was still there. And so, I decided to start fresh by re-uploading sidebar1.
   php to restore the template to ‘factory defaults’. It ended up moving it to the
   left for some unknown reason.
 * What’s the logical next step? Any ideas?
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567308)
 * If you replaced the code and the problem remains, there’s more than likely either
   other code in other templates which was changed or there was a recent update 
   or new plugin or function which is causing it.
    You’ll have to review everyting
   you modified and compare to default, if you want to salvage what you have. Otherwise
   there’s really no other way except to completely start over. This may be the 
   easier option. At that point I may be able to help remove the unwanted sidebar
   label or widget.
 *  Thread Starter [endalldisease](https://wordpress.org/support/users/endalldisease/)
 * (@endalldisease)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567317)
 * YEAHH!!!
    Okay done… It was the Style sheet that fixed the problem.
 * I also uploaded Single and Page.php so they are set to factory defaults.
 * So now we’re back in business.
    Now my only goal is to completely remove ‘Advertisement’
   and the black block behind it.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567321)
 * Should be able to, I’ll get back with ya on it asap.
 *  Thread Starter [endalldisease](https://wordpress.org/support/users/endalldisease/)
 * (@endalldisease)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567377)
 * I’m writing this to Bump this thread back to the top of the forum, and to make
   sure that you didn’t forget about me.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567381)
 * won’t help. I didn’t forget.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567383)
 * do you intend to keep the widget but no title, or change the title? or have a
   title background with no text in it? I need to better understand the goal. I 
   don’t know why you have a sidebar if you dont want it to say anything.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567384)
 * It’s unussual that a theme would have 2 right sidebars with no option to use 
   only one. It could be that if you put a blank text widget in that sidebar, it
   will unload. or at least the default title may unload.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567385)
 * Or, just put this at the bottom of style.css
 *     ```
       .contentLayout .sidebar1 {
   
           display: none;
       }
   
       .contentLayout .sidebar2 {
   
           float: right;
           margin: 0;
       }
   
       .contentLayout .content {
   
           width: 640px;
       }
       ```
   
 * the first gets rid of the sidebar, second floats the remaining sidebar to the
   right, third increases your content area to fill in the gap. You can change this
   to suit you.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/#post-2567386)
 * I found this code for these elements using Mozilla Firebug. It’s really easy,
   works in your browser, you just click on your live site elements and it shows
   the code for it in a window below. It can tell you where the code exists and 
   lets you change it for an on-the-fly preview. When saticfied you just snag the
   code and put it in your css to get the permanent change.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/sidebar-issue-21/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sidebar-issue-21/page/2/?output_format=md)

The topic ‘Sidebar Issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 17 replies
 * 2 participants
 * Last reply from: [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/sidebar-issue-21/page/2/#post-2567390)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
