[Theme: BlogoLife] Remove sidebar
-
I want a page with no sidebar. Is it possible in blogolife(already with right sidebat). How to do it?
-
There are at least three template files in this theme that cause the sidebar to be included, as far as I can see. They are:
- index.php
- page.php
- single.php
There may be more. I didn’t check them all. You’re looking for template files with a call to
get_sidebar()in them.This is a fairly radical change you are making that will probably require a log of consequential changes in the style sheet, to make the content width correct, for example, when no sidebar is displayed.
That being the case, I would strongly advise you to use a Child Theme. It takes about five minutes to do and can save you all sorts of pain later.
Once you have made your minimal child theme and activated it, you will need to copy the files above (and any more that might be outputting a sidebar, although these three should do for a start) from your parent theme (blogolife) into your child theme’s directory. You can then edit the files to get rid of the call to
get_sidebar().Having done that, you can check how your pages look and make any consequential CSS changes you need, in your child theme’s style sheet.
HTH
PAE
How can I edit the file to get rid of get_sidebar()? Could you please tell me the procedure?
You can edit any or all of your theme’s files in Dashboard –> Themes –> Editor.
So you should make a child theme, copy into the child theme the files (note that there will be more than one — at least 3 that I found on a cusory look) that you want to edit and then edit them in the editor.
Or you can download them to your local machine, edit them offline in your favourite PHP editor and then upload them to your child theme, of course. Most people don’t bother, though.
If you’re not used to doing this sort of thing it is all the more important that you make your changes in a child theme. Then, if something goes wrong, you can just go back to the parent theme.
There’s nothing to stop you editing the parent theme’s files directly, though.
HTH
PAE
ok what do i need to change to make the content auto when i removed the sidebar? i have no issues editing code i just need to know what to look for.
Sorry, I don’t know what you mean when you say you want to make the content ‘auto’.
Cheers
PAE
for example the width of the content area where page/ post content is is fixed width why do I change it in the CSS to make that area go the full width using the space that the sidebar area was using
Post a link to your site? This will help us to see what’s going on.
However, the general procedure (and certainly what I would do) is to use Firebug to find out which style rules in which files are determining the current presentation and to try out new or altered rules to see what will give you what you want.
Then, when you’ve sorted out what you need to do, just add the new rule(s) to your (child theme’s) style sheet.
HTH
PAE
Thanks everyone but I’ve given up on this already. I’m using another theme now.
The topic ‘[Theme: BlogoLife] Remove sidebar’ is closed to new replies.
