Topic RSS
unfortunately, the tutorial cant cover every possible wp theme, but is meant as a guideline as the general process is the same…
the following seems to work…
find the first occurance of:
<div class=”forum”>
and change it to
the find the second one and change it to
and then add in to your styles.css file (anywhere)
try that and let me know how it goes (works in firebug)…
btw, dont copy and paste the above code without fixing the double quotes as they get messed up…
Hi Mr Papa,
Sorry about the delete, I made some errors in my post and wanted to correct first. I tried what you replied with and am still having some problems.
My forum.php file looks like this:
<?php
/*
Template Name: forum.php
*/
?><?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post forum”>
<h1 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h1>
<div class=”postentry”>
<?php the_content(”<p>__('Read the rest of this page »')</p>”); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link(__('Edit'), '<p>', '</p>'); ?>
</div>
</div>
<?php endwhile; endif; ?><?php get_footer(); ?>
<?php get_header(); ?><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post”>
<h1 id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h1>
<div class=”postentry”>
<?php the_content(”<p>__('Read the rest of this page »')</p>”); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link(__('Edit'), '<p>', '</p>'); ?>
</div>
</div>
<?php endwhile; endif; ?><?php get_sidebar(); ?>
<?php get_footer(); ?>
well now… you didnt say both sidebars 
thats going to be more complex since the first column is likely declared in the header.php file…
I would, edit the header.php file, find where the right sidebar is displayed (id of column1) and add a check for the forum page something like:
if (is_page('forum'))
{
# remove column 1 stuff
# add a new id of forum to the id of content
} else {
# put the current stuff here
}
so when on the forum page, you redefine to not use column1 and not use column (480px width)… you will need to define the forum id styling so it uses the full width…
Hard to be too specific when I dont see the header.php file… If you would rather PM me a temp WP admin account, I could make the changes for you if you get stuck… or paste the header.php file here…
First let me say that you guys are awesome for providing this level of support.
I'm going to give it a try, but just in case here's my header.php code:
<!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 name="verify-v1" content="uBseZuRSsCu9DJUvIqNFDXBw7dmz8EDvrySCCJJ2ebw=" /><title><?php bloginfo('name'); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>
<link rel="alternate" type="application/rss+xml" title="simfonik" href="http://www.simfonik.com/?feed=rss2" />
<?php wp_head(); ?>
<body>
<div id="headerwrap">
<div id="headercolumn1"><h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1></div>
<div id="headercolumn2"></div>
<div id="headercolumn3"><?php include (TEMPLATEPATH . '/searchform.php'); ?> </div>
</div>
<div id="wrapper">
<div id="column1">
<h3>Recent Additions</h3>
<ul><?php wp_get_archives('type=postbypost&limit=20');�?></ul>
<div>
</div>
</div>
<div id="content">
first, to remove the sidebar, try deleting these lines:
<div id=”column1″>
<h3>Recent Additions</h3>
<ul><?php wp_get_archives('type=postbypost&limit=20');�?></ul>
<div>
</div>
</div>
and then add the forum class such that
and define the styling as I said before… might need some additional tweaking since I did that yesterday 
I made the changes and my header looked like this:
<!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 name="verify-v1" content="uBseZuRSsCu9DJUvIqNFDXBw7dmz8EDvrySCCJJ2ebw=" /><title><?php bloginfo('name'); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>
<link rel="alternate" type="application/rss+xml" title="simfonik" href="http://www.simfonik.com/?feed=rss2" />
<?php wp_head(); ?>
<body>
<div id="headerwrap">
<div id="headercolumn1"><h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1></div>
<div id="headercolumn2"></div>
<div id="headercolumn3"><?php include (TEMPLATEPATH . '/searchform.php'); ?> </div>
</div>
<div id="wrapper">
<div id="content" class="forum">
That removed the left sidebar, but did so across the site (not just on /forum). I'm not sure how to make the removal conditional on the page being /forum
thats why I said use the conditional page check…
if (is_page('forum'))
{
?>
<div id=”content” class=”forum”></div>
<?php
} else {
?>
<div id=”column1″>
<h3>Recent Additions</h3>
<ul><?php wp_get_archives('type=postbypost&limit=20');�?></ul>
<div>
</div>
</div>
<div id=”content”></div>
<?php
}
?>
or something similar… cant really test it out here… you still need to define .forum in your styles.css to be full width too…
as usual, beware of the single and double quotes if you copy the above…
Getting closer now! :)
<div id="column1"> is now gone when on /forum but still there everywhere else… perfect!
The forum is still nested within <div id="content">. How can I make it so it isn't, or at least make it so that <div id="content">, for /forum, is the same width as <div id="wrapper">? The width of <div id="content"> is 480px, which is what I want everywhere except /forum, so I end up with those vertical dashes (from line 289 of style sheet) cutting through the background on /forum right now.
Hope that makes sense. Thanks again for your help.
Most Users Ever Online: 444
Currently Online: Sander58, SPQC, MacBravO
67 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 502
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2626
Members: 7363
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10895
Posts: 79576
Newest Members: Rick Thomas, joelrob, ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22236), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline

Quote



Visit 
Privacy Policy



