May 24, 201115 yr Hi Everyone, I'm trying to get rid of a default sidebar on my Wordpress site, I've tried a few things and messed my site up so bad I've had to reinstall the theme (twice ) Can anyone tell me what I need to remove in my stylesheets to stop the left hand side navigation bar showing (currently reads "Home" and tis grey). My URL is: http://www.lifeinsurancequotesx.co.uk/ Many thanks, Sam
May 24, 201115 yr It's nothing to do with your CSS You need to find the piece of code in the correct php file (header.php I think) that is bringing up the sidebar and comment it out. This is the method I have previously used and it works fine. I hope this helps
May 25, 201115 yr Author Hey Guys, I tried removing <div id="leftside"> from my header.php but that makes my page go skewed and the sidebar remains. My header.php is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=<?php bloginfo('charset'); ?>" /> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" /> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head> <body> <div id="wrap"> <div id="header"> </div> <img id="frontphoto" src="http://lifeinsurancequotesx.co.uk/life-insurance-quotes.jpg" width="881" height="85" alt="banner-image" /><br /> <div id="leftside"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?> <h2 class="hide">Main menu:</h2> <ul class="page"> <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?> <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li> <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?> </ul> <?php endif; ?> </div> Any further tips? Thanks, Sam
May 25, 201115 yr <div id="leftside"> Did you just remove the opening tag? You'd need to delete everything... however what zed said in the first place would get rid of it.
May 26, 201115 yr Author Thanks Zed, It worked! Is there anyway I can align the body text to where the side bar used to be? I've added some sample text to show you what I mean. http://www.lifeinsurancequotesx.co.uk You can see the text isn't aligned to the left, perhaps I can edit something in the stylesheet to allow the text to show up further left? Thanks, Sam
May 26, 201115 yr in your css try #contentwide { line-height: 1.6em; margin: 0 0 5px 5px; /*left margin was on 150px - that was your problem*/ padding: 0; }
May 31, 201115 yr Author Thanks Ash! That worked a treat, any idea how to make the background image (loads first shown behind and slightly above the "life insurance logo" the same width as the front page? Many thanks, Sam
Create an account or sign in to comment