codeblue2k
Member
Posted 3 years ago #
So I am using the theme OceanBeach (http://www.skinpress.com/ocean-beach/) and im trying to remove the sidebar from just one of my pages. I have put the following code into my header that points to a new stylesheet but I cant seem to actually get rid of the sidebar. What am I forgetting?
<?php if ( is_page(array('3','103','471')) ) { ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/no_sidebar_style.css" />
<?php } else { ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php } ?>
I removed all items in the new stylesheet that pertains to the sidebar, but cant seem to get rid of it. Here is a before and after the changes I made to the code:
<img src="http://i230.photobucket.com/albums/ee187/codeblue2k/WordpressImage2-1.jpg" border="0" alt="Photobucket">
<img src="http://i230.photobucket.com/albums/ee187/codeblue2k/WordpressImage-1.jpg" border="0" alt="Photobucket">
Is there some other place that the actual sidebar is called? I did this on another website and all that I remember doing was what I did above. Please help :) thanks!!
are you sure you don't have one of those set up as a widget?
admin - appearance - widgets
codeblue2k
Member
Posted 3 years ago #
Samboll - One of what? The stylesheet? Ive done nothing to the code of the theme besides whats stated above.
codeblue2k
Member
Posted 3 years ago #
Here is what the new style sheet looks like. About half way down you can see where the code was for the side bar, between /* sidebar*/ and /* end sidebar*/
`
/*
Theme Name: OceanBech
Theme URI: http://www.askgraphics.com/
Description: Widget ready theme with two sidebars.
Version: 1.0
Author: AskGraphics.com
Author URI: http://www.askgraphics.com/
[huge chunk of code moderated - please use a pastebin]
no - you have 2 meta's in the sidebar
I think your problem may be you are trying to use widgets and edit code - you may be outwitting yourself.
you can do both but must do it in the correct locations
just look at your widgets - if that's not it we can move on
codeblue2k
Member
Posted 3 years ago #
I looked in admin - appearance - widgets as you suggested and I no longer have any widgets assigned to any of the sidebars. Issue still seems to be sticking around.
codeblue2k
Member
Posted 3 years ago #
I also looked thru the rest of the files in me theme and still cant seem to find where the sidebar is being loaded.
codeblue2k
Member
Posted 3 years ago #
I would help but I need a link - I'm not going to guess from images
codeblue2k
Member
Posted 3 years ago #
codeblue2k
Member
Posted 3 years ago #
codeblue2k
Member
Posted 3 years ago #
I figured it out!!
Instead of just deleting the sidebar section from my new CSS I replaced it with
#sidebar { display:none;}
Worked like a charm