Click to Register Your Support Account

Already a member? Login below.

Go Back   One Theme Support Forums > One Theme Version 1 (OLD) > FAQs & Tutorials

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2008, 07:03 PM
Lee's Avatar
Lee Lee is offline
One Theme Support
 
Join Date: Jul 2008
Posts: 420
Send a message via MSN to Lee Send a message via Skype™ to Lee
Default How to Remove the 3rd Sidebar & Stretch Content

How to remove the 3rd sidebar (one theme v1.1.3)

1)
Open sidebar.php

Find:
Quote:
<div class="right">
<?php ot_ads('right'); ?>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(2) ) : ?>
<div class="list">
<h3><?php echo ot_lang( 'sidebar_archives' ); ?></h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>
<div class="clear"></div>
<div class="list">
<h3><?php echo ot_lang( 'sidebar_blogroll' ); ?></h3>
<ul>
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
</ul>
</div>
<div class="clear"></div>
<div class="list">
<h3><?php echo ot_lang( 'sidebar_rss' ); ?></h3>
<ul>
<li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>">
<?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
</ul>
</div>
<div class="clear"></div>
<div class="list">
<h3><?php echo ot_lang( 'sidebar_meta' ); ?></h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</div>
<div class="clear"></div>
<?php endif; ?>
</div>
Delete it

2) Open the CSS file your site is using, for example, if your site uses the blue theme, open one-theme/css/blue.css

Find:
Quote:
.sidebar-container{width:365px;float:right;margin:0;padding:0;}
Replace with:
Quote:
.sidebar-container{width:226px;float:right;margin:0;padding:0;}
Find:
Quote:
.left{float:left;width:512px;margin:5px;overflow:hidden;}
Replace with:
Quote:
.left{float:left;width:650px;margin:5px;overflow:hidden;}
3) open comments.php

Find:
Quote:
<div style="width:503px;">
Replace With
Quote:
<div style="width:640px;">
This works best with the news & blog layouts, not recommended for the default layout.

Enjoy
  #2 (permalink)  
Old 10-18-2008, 11:14 AM
Rei Rei is offline
Junior Member
 
Join Date: Sep 2008
Posts: 3
Default

Wow mate thanks for this it really help!The first tutorial didn't work but this does!
  #3 (permalink)  
Old 10-19-2008, 01:04 AM
Lee's Avatar
Lee Lee is offline
One Theme Support
 
Join Date: Jul 2008
Posts: 420
Send a message via MSN to Lee Send a message via Skype™ to Lee
Default

Np Rei, quite interested to know which site you've used this tutorial on?
  #4 (permalink)  
Old 12-23-2008, 03:37 AM
Junior Member
 
Join Date: Dec 2008
Location: United States of America
Posts: 5
Send a message via AIM to Rhodes
Default

Thank you so much! It worked very well for my website, GamerKeys.

World of Warcraft CD Keys and Game Time Cards
  #5 (permalink)  
Old 12-29-2008, 11:18 AM
Junior Member
 
Join Date: Oct 2008
Posts: 15
Default

Is this fix working ONLY with 1.1.3?
What about 1.1.1?
(I didn't upgrade yet due to ioncube issues people having)
  #6 (permalink)  
Old 12-30-2008, 07:17 PM
Junior Member
 
Join Date: Oct 2008
Posts: 14
Default Stretch right column only

I've removed the third column, but I'd only like to stretch the right column so that I can enlarge the video and the other contents. How do I do this?

Thanks - Olu
  #7 (permalink)  
Old 01-16-2009, 11:51 AM
Member
 
Join Date: Sep 2008
Posts: 58
Default

Nice once Lee, I've just made the edits you recommended (even though I'm using default layout) and the site looks much cleaner. Is there a risk in me using this with default? www.lifegym360.com
  #8 (permalink)  
Old 01-16-2009, 09:29 PM
Junior Member
 
Join Date: Jan 2009
Posts: 4
Default

Can somebody post the edited pages. I tried to edit using dreamweaver and botched it up.
  #9 (permalink)  
Old 01-16-2009, 09:31 PM
Jay's Avatar
Jay Jay is offline
Administrator/Freelancer
 
Join Date: Oct 2008
Posts: 684
Default

do not use dreamweaver unless you are using code view, not design view
  #10 (permalink)  
Old 01-26-2009, 06:00 AM
Junior Member
 
Join Date: Jan 2009
Posts: 4
Default

Im using 1.1.3 BUT I got a problem finding the first code I need to delete..

The only code my sidebar has is

Quote:
<div class="sidebar-container">
<div class="sidebar-add">
<?php ot_ads('sidebar'); ?>
</div>
<div class="mid">
<?php ot_feedburner_subscribe(); ?>
<?php ot_popular_thumbs(); ?>
<?php ot_featured_video(); ?>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(1) ) : ?>
<div class="list">
<h3><?php echo ot_lang( 'sidebar_categories' ); ?></h3>
<ul>
<?php wp_list_categories('title_li='); ?>
</ul>
</div>
<div class="clear"></div>
<div class="list">
<h3><?php echo ot_lang( 'sidebar_pages' ); ?></h3>
<ul>
<?php wp_list_pages('&title_li='); ?>
</ul>
</div>
<div class="clear"></div>
<div class="tagcloud">
<h3><?php echo ot_lang( 'sidebar_cloud' ); ?></h3>
<ul>
<li><?php wp_tag_cloud('smallest=8&largest=20&number=25&orderby=name');?></li>
</ul>
</div>
<div class="clear"></div>
<?php endif; ?>
</div>

</div>
Help me please..
  #11 (permalink)  
Old 01-27-2009, 11:09 PM
Jay's Avatar
Jay Jay is offline
Administrator/Freelancer
 
Join Date: Oct 2008
Posts: 684
Default

depending on which layout you use, to edit news layout sidebar open up news-layout.php
  #12 (permalink)  
Old 08-20-2009, 08:20 PM
Junior Member
 
Join Date: Aug 2009
Posts: 7
Default Removing 3rd Sidebar

does this also work for version 2.0?
  #13 (permalink)  
Old 08-22-2009, 03:51 AM
Jay's Avatar
Jay Jay is offline
Administrator/Freelancer
 
Join Date: Oct 2008
Posts: 684
Default

Yes, it works for 2.0 ^^
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I remove Archives, Blogroll and RSS from the right-most sidebar? Spacemonkey Using One Theme 8 01-26-2009 06:50 AM
Featured Content Scroller? deanogee Suggestion Box 6 09-17-2008 12:04 AM
Remove RSS Feed from sidebar zoomer Using One Theme 2 09-09-2008 11:04 AM
Featured Content carterandcompany Using One Theme 1 08-25-2008 10:31 AM
Malicious Content Code pcbdaily Bug Reporting 1 08-14-2008 10:27 AM


All times are GMT. The time now is 06:59 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0