Helping you Build Your Own Social Network!

Faster, better and easier!

How to remove/disappear the sidebar on certain pages?

(7 posts) (3 voices)

Tags:

No tags yet.


  1. How to remove the sidebar on certain pages, because I want to disappear / make invisible sidebar on certain pages (i'm using cosmicbuddy theme), I want to make the sidebar: find blog can be disappear/ invisible on the gallery page and also the sidebar: login box and members on registration page

    thank's

    Posted 1 year ago #
  2. I use this:

    CSS
    '

    .page-id-20 #Sidebar {
    display:none;}

    or

    .home #Sidebar {
    display:none;}

    or

    .login #Sidebar {
    display:none;}

    Posted 1 year ago #
  3. And use firebug by mozilla...

    Posted 1 year ago #
  4. Hi Jack,
    the easiest way would be to remove the line

    <?php locate_template( array( 'sidebar.php' ), true )

    from gallery/directory.php, gallery/members/index.php and gallery/groups/index.php.

    But you will need to fix the width of the template using css for those page.

    Posted 1 year ago #
  5. @jcmartin: i have tried firebug but i don't know where the location file i will to fix
    @brajesh: I can't see the line =<?php locate_template( array( 'sidebar.php' ), true )"
    in all my gallery/directory.php, gallery/members/index.php and gallery/groups/index.php.
    i'm just found:
    <?php locate_template( array( 'gallery/gallery-loop.php' ), true ) ?> on gallery/directory.php
    <?php locate_template( array( 'userbar.php' ), true ) ?> on gallery/members/index.php

    & <?php locate_template( array( 'groups/right-sidebar.php' ), true ) ?> on gallery/groups/index.php.

    this is my screenshoot page : http://img20.imageshack.us/img20/3561/galeryscreenshootl.jpg

    Thank u very much both of you

    Posted 1 year ago #
  6. Hi Jack,
    Thanks for the screenshot. The error is on the gallery directory page.

    Please open cosmicbuddy/gallery/directory.php and change line 66 from

    <?php get_sidebar("blogs-directory");?>

    to

    <?php get_sidebar();?>

    That should do it. Please let me know if it works or not.

    Posted 1 year ago #
  7. Thank you very much Brajesh, it works :)

    Posted 1 year ago #

Reply

You must log in to post.