Remove sidebar from WP

17 replies
  • WEB DESIGN
  • |
Hey!
Is it possible to remove the sidebar from my WordPress theme?

Link to image:

http://img685.imageshack.us/img685/5524/unledvn.png
#remove #sidebar
  • Profile picture of the author dassad
    Originally Posted by Random101 View Post

    Hey!
    Is it possible to remove the sidebar from my WordPress theme?

    Link to image:

    http://img685.imageshack.us/img685/5524/unledvn.png

    Yes is possible. The hardness, depends on your used theme, but the process is the following.

    Go to your theme editor on the admin interface. Look in files for this code

    Code:
    <?php get_sidebar(); ?>
    if is only in the footer or in header, you have to remove it from there or just comment it out using <!-- -->. If the code is located in the index, archive, or single files than you have to remove all.

    When you are ready, go to your CSS and edit the content section's width (if is not dynamic) to full width.

    And that would be all. If you have some html + php +css knowledge than you are ready to go, if not then make a backup first, or hire someone (for example me ) who makes it for cheap.


    Regards,
    daSSad
    {{ DiscussionBoard.errors[3721673].message }}
  • Profile picture of the author Random101
    Ok, thank you I got rid of the text. Can I get rid of the background?

    Here if you wanna see what I mean:
    howtogetridofacne.cz.cc
    {{ DiscussionBoard.errors[3721702].message }}
  • Profile picture of the author Random101
    Ok, how do I do that =D
    {{ DiscussionBoard.errors[3721784].message }}
    • Profile picture of the author dassad
      Originally Posted by Random101 View Post

      Ok, how do I do that =D
      Lol open it in Photoshop or anything and re paint the gray part to white Save it and upload it.

      Regards,
      daSSad
      {{ DiscussionBoard.errors[3721789].message }}
  • Profile picture of the author Random101
    Thank you =D
    BTW, what do you think of the site now?
    {{ DiscussionBoard.errors[3721826].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by Random101 View Post

      BTW, what do you think of the site now?
      With the method you were told to use (deleting the call to include the sidebar.php) you will always remove only the content of the sidebar... and never the space of the sidebar.
      Signature

      {{ DiscussionBoard.errors[3721876].message }}
      • Profile picture of the author dassad
        Originally Posted by Istvan Horvath View Post

        With the method you were told to use (deleting the call to include the sidebar.php) you will always remove only the content of the sidebar... and never the space of the sidebar.
        Exactly that's why i told this in the first post:

        "When you are ready, go to your CSS and edit the content section's width (if is not dynamic) to full width."
        {{ DiscussionBoard.errors[3721888].message }}
        • Profile picture of the author Istvan Horvath
          Originally Posted by dassad View Post

          Exactly that's why i told this in the first post:

          "When you are ready, go to your CSS and edit the content section's width (if is not dynamic) to full width."
          Which, for a code illiterate (and everybody who has to ask a question like the OP is code-illiterate!) - means nothing... because they won't know how to do it

          Furthermore: The "content" section may have a completely different ID name. It may be different in the index template file and the single template and/or page template etc. There might be margins and floats involved in that design...

          So, no, it is NEVER that simple that some people want to believe it.
          Signature

          {{ DiscussionBoard.errors[3721926].message }}
          • Profile picture of the author dassad
            Originally Posted by Istvan Horvath View Post

            Which, for a code illiterate (and everybody who has to ask a question like the OP is code-illiterate!) - means nothing... because they won't know how to do it

            Furthermore: The "content" section may have a completely different ID name. It may be different in the index template file and the single template and/or page template etc. There might be margins and floats involved in that design...

            So, no, it is NEVER that simple that some people want to believe it.
            Thats true but i already checked the theme from the picture that he included in the first post, that's why i can tell to him what where to change. An yeah it's not simple, but can be done with some help. Now I'm helping him to do it and I'm sure that he can do it.

            If somebody helps me i ca create a robot that serves me coffee everyday, but i can't make it again. Also if i ask someone how to make a robot, i don't want to hear answers like "go and buy one, or hire someone who can make it", if i ask for HOW TO... than means that i want to make it.


            Regards,
            daSSad
            {{ DiscussionBoard.errors[3721940].message }}
  • Profile picture of the author Evan-M
    Originally Posted by Random101 View Post

    Hey!
    Is it possible to remove the sidebar from my WordPress theme?

    Link to image:

    http://img685.imageshack.us/img685/5524/unledvn.png
    why not just open your sidebar, and comment it out.

    then open your style sheet, and adjust the main body widths etc to fit full screen. that way if you change your mind later you don't need to go back and edit all your files again
    Signature

    Evan-M

    Easily The Worlds Best Wordpress Popup plugin

    Visit Website Design Firm For All Your Wordpress Coding Needs

    {{ DiscussionBoard.errors[3721887].message }}
  • Profile picture of the author Random101
    Well, sorry I'm not that advanced =)
    Anyway what do you think of the site now, am I doing alright??
    {{ DiscussionBoard.errors[3721908].message }}
    • Profile picture of the author dassad
      Originally Posted by Random101 View Post

      Well, sorry I'm not that advanced =)
      Anyway what do you think of the site now, am I doing alright??
      Yeah, now go to your CSS that can be found as STYLE.CSS in your code editor and find this code:
      Code:
      #content-body {
          width: 714px;
      edit it to

      Code:
       #content-body {
           width: 935px;
      after that find the following code in the same file:

      Code:
      .cat_tags {
          background: url("http://www.warriorforum.com/images/wider/tags_category.png") no-repeat scroll 0 0 #FFFFFF;
          width: 713px;
      and edit it to

      Code:
      .cat_tags {
          background: url("http://www.warriorforum.com/images/wider/tags_category.png") no-repeat scroll 0 0 #FFFFFF;
          width: 935px;
      also you may edit the .....images/wider/tags_category.png image to be 935px in width.

      And one more to go:

      find this code in the same file:

      Code:
      .hentry {
          overflow: hidden;
          width: 713px;
      
      
      }
      And edit the width to 935px.


      Also if the site looks bad, just edit these three width properties to something smaller.

      Regards,
      daSSad
      {{ DiscussionBoard.errors[3721922].message }}
  • Profile picture of the author johnnybreeze
    hey Guys, I have almost the same problem. I'm still a newbie but do have a bit of HTML knowledge. My question is: How to remove the sidebar only on some specific posts?

    Unfortunatey I'm not allowed yet to post links, but I use the Wordpress Theme called Magazine Basic with sidebars left and right.
    Could you help me on that one please?
    {{ DiscussionBoard.errors[4946744].message }}
    • Profile picture of the author samurairey
      Originally Posted by johnnybreeze View Post

      hey Guys, I have almost the same problem. I'm still a newbie but do have a bit of HTML knowledge. My question is: How to remove the sidebar only on some specific posts?

      Unfortunatey I'm not allowed yet to post links, but I use the Wordpress Theme called Magazine Basic with sidebars left and right.
      Could you help me on that one please?
      Open your theme folder and open your Home.php to any html php editor or notepad can do it and then find this code:
      <?php get_sidebar(); ?> in the bottom part. Just remove that code and save. DONE!
      {{ DiscussionBoard.errors[4947249].message }}
  • Profile picture of the author johnnybreeze
    Alright I think i can do that, but doesn't it remove the side bars from all the posts? I want to keep the sidebar on some pages...
    {{ DiscussionBoard.errors[4949053].message }}
  • Profile picture of the author magiclouie
    Next time, please try to use the headway theme, so that removing a sidebar will be just few clicks away.
    {{ DiscussionBoard.errors[4949671].message }}

Trending Topics