• I need to try and get this CV (http://www.davidcoltart.com/DC_old/about.html) into this wordpress site ( http://www.davidcoltart.com) as a Page – not a post.

    I would like a custom page template that loses the sidebar completely so I just have a wide white clean page (therefore needs to also drop the background image which gives a blue border on right) and would like to be able to get a table into the page. This will be very rarely updated, but the guy I’m doing the site for really really likes the layout of the CV from his old site (weep!).

    Been struggling for days and days! Custom templates have me totally confused and I find the codex has confused me even more. I have found useful open source CSS table layout here (http://icant.co.uk/csstablegallery/index.php?css=6) which I thought I’d try use and customise. But how…..??

    Would really appreciate some help.

    p.s. the reason I’ve suggested he use wordpress rather than old format is so he can control and update going forward. But I’ve zero experience using pages……

Viewing 8 replies - 1 through 8 (of 8 total)
  • Couldn’t you just not use (delete) the reference to get_sidebar()?

    Thread Starter DCadmin

    (@dcadmin)

    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">&nbsp;</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

    Thread Starter DCadmin

    (@dcadmin)

    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)

    I think that’s http://codex.wordpress.org/Conditional_Tags instead….

    Thread Starter DCadmin

    (@dcadmin)

    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 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Tables and page templates’ is closed to new replies.