• my site is fourthroom.com

    my problem is that i want to be able to remove the sidebar widget ready column when clicking into a page.

    for example. I have a menu/page called forums. I want users to be exempt from seeing the sidebar column when they enter that page.

    any help is appreciated, thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Create a template for that page.

    <?php
    /*
    Template Name: templatenamehere
    */
    ?>

    Open page.php and then add the following to the top:

    adding whatever name you want to give the template. Then remove the <? get_sidebar(); ?> from the page and SAVE AS nosidebar.php and upload. Now in the manage pages edit your forums page and assign it to this template on the right hand side where it says page template.

    Thread Starter liquid5170

    (@liquid5170)

    i understand what you’re trying to say but there are no get_sidebar calls after thumbing through the pages, index, header, etc.. anywhere.

    comment:
    <?php get_sidebar(); ?>

    Basicly you go in the page.php file of the template you are using and erase this code <?php get_sidebar(); ?> wich should be amongs the last lines of code in that template, you’ll find the template files in your_blog_folder\wp-content\themes\name_of_theme_you_are_using\

    Also in some sidebar.php files you’ll find this:

    <?php /* If this is the frontpage */ if ( is_home() || is_page() || is_single()  ) { ?>
    
    			<?php } ?>
    
    			<?php endif; ?>

    if you post all your sidebar items between theese lines od code and remove || is_page() thay will not be displayed.

    Found it. Commented it in both index.php and page.php. The side bar is removed but I can’t use the space still.

    Then remove whatever css contained used to hold the sidebar, look through the css file and try to figure out what provides that space and delete it or reduce it’s width.

    I commented out #sidebar and increased the width for the content from 468 to 568px.

    #content {
    	float: left;
    	width: 568px;
    }
    
    /*#sidebar {
    	float: right;
        width: 30px;
    }*/

    Now the content is stretched over to the sidebar, which is great but how do I get rid of the dotted line behind it? It seems to have gotten distorted after I increased the content width. It’s supposed to look like the one on the far left of the page.

    This is the page: https://shop.ipunye.com/sites/about/

    Thx!

    found it! went through the whole css looking for background images..*sweat*

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘how to remove sidebar?’ is closed to new replies.