Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Blog page problems

Status
Not open for further replies.
Joined
Sep 30, 2011
Posts
1,233
Reaction score
198
There's probably a really simple answer to this that I've overlooked.

Every page on my site should be the same with no sidebars, and I've done this by selecting the correct page template in the edit page bit for each seperate page. This works for every page apart from the blog, it insisting on having a sidebar with an archives widget (which I don't mind) and a meta widget (which I do mind).

How do I get rid of it? I've tried everything I can think of, I know it's probably something really simple but I'd appreciate it if someone could point me in the right direction. I've got blogs ready to go on it, but I don't want to start posting on it properly until I've got this sorted.

Thank you!
Scott
 
If were talking WordPress check the following files if there in your theme folder

blog.php
category.php
archive.php
index.php

look for any reference to get_sidebar(); include sidebar or simalar
 
Go to Appearance
Editor
sidebar.php

Remove this code:

Code:
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>

			<aside id="search" class="widget widget_search">
				<?php get_search_form(); ?>
			</aside>

			<aside id="archives" class="widget">
				<h1 class="widget-title"><?php _e( 'Archives', 'alexandria' ); ?></h1>
				<ul>
					<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
				</ul>
			</aside>

			<aside id="meta" class="widget">
				<h1 class="widget-title"><?php _e( 'Meta', 'alexandria' ); ?></h1>
				<ul>
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<?php wp_meta(); ?>
				</ul>
			</aside>

		<?php endif; // end sidebar widget area ?>

Or any part of (search) (archives) (meta)

Backup the original file first just in case you make a mistake.

Admin
 
Id keep the sidebar template as default incase one day there is a page you wish to have it on.

The simply way of doing what you are trying to do is remove the following from index.php in your theme...

Code:
<?php get_sidebar(); ?>

from the second line up from the bottom. That will remove the sidebar from the blog index.

if that doesnt work your theme may make use of the "home.php" for the blog index so simply remove the same peace of code from there too.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Featured Services

Auctions Ending - Flip.uk

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Register for the auction

Latest Comments

Acorn Domains Merch
MariaBuy Marketplace

New Threads

Domain Forum Friends

Other domain-related communities we can recommend.

Our Mods' Businesses

Perfect
Service
Laskos
*the exceptional businesses of our esteemed moderators
Top Bottom