Viewing 9 replies - 1 through 9 (of 9 total)
  • the width is restricted by the width of .postmid in your stylesheet.

    you wold need to increase this specifically for that one page;

    unformtunately your theme does neither use body_class() nor post_class() to inject page specific CSS classes –

    you would need to have a specific CSS class for that page, to use for the adaptation of the formatting.

    also, your inserted table is too wide for the theme’s total width.

    start by posting the full code of the new page template.

    Thread Starter acqua

    (@acqua)

    The following is the code:

    Kindly tell me if I can force the markup to get what I need

    <?php
    /*
    Template Name: no sidebar
    */
    ?>
    
    <?php get_header(); ?>
    
    <div class="main">
    
    <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    <div class="posttop"></div>
    <div class="postmid">
    <div class="box1">
    
    <div class="b1top"><h1><?php the_title(); ?></h1></div>
    
    <div class="b1mid">
    
    <div class="post-text">
    
    <?php the_content(''); ?>
    
    </div>
    
    </div>
    
    </div><!-- box1 close -->
    </div>
    <div class="postbottom"></div>
    <?php endwhile; ?>
    
    <?php endif; ?>
    
    </div><!-- main close -->
    
    <?php get_footer(); ?>

    change this line:

    <div class="main">

    for example to:

    <div class="main no-sidebar">

    then add to style.css:

    .no-sidebar .postmid { width: 930px; }

    your table seems to be having inline styles where the width is set with ‘pt’ units – try to remove that section;

    edit the page using the ‘text’ setting of the editor; lok for:

    <table dir="ltr" style="width: 848.0px; height: 409.45pt; border-collapse: collapse; top: 0pt; left: 0pt; z-index: 3;" cellpadding="0" cellspacing="0" width="983">

    change to:

    <table dir="ltr" style="border-collapse: collapse; top: 0pt; left: 0pt; z-index: 3;" cellpadding="0" cellspacing="0" width="983">

    Thread Starter acqua

    (@acqua)

    Hi,

    changes you suggested are done http://www.sancarlobasket.com/uisp_stat_1314/

    But the page still look a bit weird.
    Can you check more please?

    add a few more styles; for example:

    .no-sidebar .posttop, .no-sidebar .postbottom { width: 930px; }
    .no-sidebar .postmid { background-image: none; background-color: #f5f5f5; }
    Thread Starter acqua

    (@acqua)

    Have a look please
    http://www.sancarlobasket.com/uisp_stat_1314/

    Title is a bit weird

    please specify what exactly you mean by ‘weird’;

    as this turns into a pure CSS formatting issue, consider task at a CSS forum like http://csscreator.com/forum

    possibly change the one style to:

    .no-sidebar .postmid, .no-sidebar .posttop, .no-sidebar .postbottom { background-image: none; background-color: #f5f5f5; }

    Thread Starter acqua

    (@acqua)

    What I mean with weird is that the title is not aligned to left as in the other pages like http://www.sancarlobasket.com/uisp-classifica/

    But the title has a bit of right-padding/margin?

    your theme has a lot of containers with fixed widths;

    try using a browser inspection tool like Firebug to investigate for instance how the title and its containers are formatted;

    fine tuning formatting is really not a WordPress issue and gets better dealt with in a forum like http://csscreator.com/forum

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Page content to be with no sidebar’ is closed to new replies.