Couldn’t you just not use (delete) the reference to get_sidebar()?
This – http://www.davidcoltart.com/cv/ – is the result of a ‘template’ I created (dropping the sidebar as suggested above). I find it hard to belive that the convoluted way I’ve approached this correct – surely its easier….? And I’m a logn way from being where I need to be.
First I did as you suggested – and dropped the sidebar. My ‘template’ (I use the word advisedly) has code that looks like this:
<?php
/*
Template Name: Bio
*/
?>
<?php
get_header();
?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
<?php
require('footnoside.php');
?>
It calls ‘footnoside’ – yup! a footer without a sidebar – so I can get the bottom border in. And that looks like this:
</div>
<?php
require('sidebarbio.php');
?>
<div style="clear:both;height:1px;"></div>
<?php do_action('wp_footer', ''); ?>
<div class="footer"> </div>
</div>
</body>
</html>
And that calls sidebarbio – which was bizarre way of trying to get some text over the blue bit (which I can’t lose. And that looks like this:
<div id="menu">
some text
</div>
Surely it isn’t this complicated………
I’m getting wrapped up in knots.
UPDATE: If I use the ‘bio’ file as a templte it doesn’t work – nothing I type into the create page area is displayed in the template…….?
No matter waht you do about the sidebar, that blue thingy always will show up because in your stylesheet at the #rap you have a bg image defined. This one:
http://davidcoltart.com/wp-content/themes/desert/images/content_bg.gif
I see that the #rap is being pulled in as past of the ‘header’….does that mean, in order to get a clean page, that I need to create a second ‘header’ that excludes that?
You have a few options:
– use a conditional statement for that page > see Contitional_Tags
– use a second header for this special Page template (where you call for a – let’s say – “pagerap” div and define it in the stylesheet)
– re-slice the theme files (a lot of work, I agree)
OK…… I’ll see if I can get my head around that… thanks for the help. Could you help me with one other thing…?
I’ve just tried to create a page using the ‘bio’ thingy as a template – but none of the text I typed in is being displayed. Is there a tag I need to insert to pull text into it?
Second, can I type css straight into the page creation area of wordpress and will it display correctly – or does the CSS for tables need to be part of either the template or style sheet?
1. I don’t see any template tag (like: the_title, the_content etc.) in your template. Meaning – nothing is calling the content.
2. You can write inline style in the content – provided you are NOT using the ugly WYSIWYG editor 🙂