Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$5
Hide sidebars
I would like to hide sidebar 2,3 and 4 on http://www.thailandliving.se
How do I do that?
Thanks
This question has been answered.
Charlotte Raboff | 07/16/11 at 11:10am
Edit
(4) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
07/16/11
11:17amDan | gteh says:can you post the contents of your sidebar.php? or msg me your FTP details and I can do it.
- 07/16/11 11:22am
Charlotte Raboff says:I have actually 4 sidebar files =
sidebar1.php
<div id="sidebar1">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<li>
<h2><?php _e('Categories'); ?></h2>
<ul>
<?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
</ul>
</li>
<li>
<h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<li>
<h2><?php _e('Links'); ?></h2>
<ul>
<?php get_links(2, '<li>', '</li>', '', TRUE, 'url', FALSE); ?>
</ul>
</li>
<?php endif; ?>
</ul>
</div>
sidebar2.php
<div id="sidebar2">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(3) ) : else : ?>
<li>
<h2>About the Blog</h2>
<ul><li>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce commodo nulla at metus. Sed id lectus. Phasellus in erat. Donec metus sapien, egestas a, congue sed, facilisis ut, enim.
</li></ul>
</li>
<li>
<h2><?php _e('Recent Posts'); ?></h2>
<ul>
<?php get_archives('postbypost', '10', 'custom', '<li>', '</li>'); ?>
</ul>
</li>
<li>
<h2><?php _e('Meta'); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php endif; ?>
</ul>
</div>
sidebarBottom.php
<div id="sidebar3">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(4) ) : else : ?>
<li>
<h2><?php _e('Categories'); ?></h2>
<ul>
<?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
</ul>
</li>
<li>
<h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<li>
<h2><?php _e('Links'); ?></h2>
<ul>
<?php get_links(2, '<li>', '</li>', '', TRUE, 'url', FALSE); ?>
</ul>
</li>
<?php endif; ?>
</ul>
</div>
sidebarTop.php
<div id="sidebar1">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<li>
<h2><?php _e('Categories'); ?></h2>
<ul>
<?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
</ul>
</li>
<li>
<h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<li>
<h2><?php _e('Links'); ?></h2>
<ul>
<?php get_links(2, '<li>', '</li>', '', TRUE, 'url', FALSE); ?>
</ul>
</li>
<?php endif; ?>
</ul>
</div>
- 07/16/11 11:22am
-

Last edited:
07/16/11
11:18amRomel Apuya says:can you be specific what are those? on the sidebar?
- 07/16/11 11:22am
Romel Apuya says:in your template css add
#sidebar2,#sidebar3,#sidebar3{
display:none;
} - 07/16/11 11:23am
Romel Apuya says:also add #sidebar4
- 07/16/11 11:29am
Charlotte Raboff says:Thanks.. I have added the code now to the ccs but it didn´t really work, look at the website now, one sidebar is still there (categories) and below is a grey line from another...
- 07/16/11 11:39am
Romel Apuya says:the categories with blue text or grey text?
- 07/16/11 11:58am
Romel Apuya says:add to the bottom of your css
#sidebars b .side{
display:none;
} - 07/16/11 12:01pm
Romel Apuya says:ok revise it to
#sidebars b .side{
display:none !important;
}
- 07/16/11 11:22am
-

Last edited:
07/16/11
11:22ammoviezman says:Go to Dashboard/Appearance/widgets and remove what you want from the sidebar (click then delete.
- 07/16/11 11:30am
moviezman says:Go to Dashboard/Appearance/Edit then edit index.php
Remove
<?php get_sidebar2(); ?>
<?php get_sidebar3(); ?>
or
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
<?php include (TEMPLATEPATH . '/sidebar3.php'); ?>
if you find them ...
Before deleting Make a copy of index.php by security
- 07/16/11 11:44am
Charlotte Raboff says:Hi, yes that worked!
the <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
But there are still grey lines left, maybe that is another question...:) - 07/16/11 11:49am
moviezman says:For the Grey buttons, it is in CSS:
You have the choice, remove this :
1- Remove in the index.php -- <div class="side_bottom"></div>
2-Or remove in CSS this line in bottom if you don't need
.side_bottom {
background: url("images/sidebottom.gif") no-repeat scroll left bottom transparent;
height: 8px;
width: 230px;
} - 07/16/11 11:58am
Charlotte Raboff says:thanks....it worked for two of them but there is on left and I can´t find the code for that one...
- 07/16/11 11:30am
-

Last edited:
07/16/11
11:30amLuke America says:Method #1:
Without actually modifying your sidebar source code, in sidebars.php for example, here's a CSS trick that should make them disappear.
At the bottom of your style.css file, add the following:
#sidebar1 {display:none;}
#sidebar2 {display:none;}
#sidebar3 {display:none;}
OR
Method #2:
Open your theme's functions.php file, and make the following change:
register_sidebars(4);
to
register_sidebars(1);
OR
Method #3
The best method is to comment out the sidebar code in your theme files (put two backslashes before the code, it, //). But, these particular filenames vary from theme to theme ... examples are sidebars.php, sidebar.php, etc. Also, some themes implement these sidebars one by one in the other files, such as, page.php, single, php, index.php.
Also, some themes will simply let you delete the content from the Dashboard. But, your theme appears to be using default content. So ... you can not remove it that way.Previous versions of this answer: 07/16/11 at 11:29am | 07/16/11 at 11:30am
This question has expired.
Charlotte Raboff voted on this question.
Current status of this question: Completed
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
