• I’m whipping my blog-redesign into shape (https://admintoolbox.org) and I have one thing that I lack the skill to do. My hope is that some of you whiz-bang WordPress Genies might point me in the right direction.

    On the Pages within my blog, I want to omit all the widget-columns.

    I’m no CSS whiz, so it’s been hard for me to wrap my head around this. I’ve done a fair amount of research, but have yet to find the quickest, easiest (preferably Plugin-based) way to make this happen.

    Thoughts?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter docbadwrench

    (@docbadwrench)

    More Detail:

    I have figured out how to create page templates. This is great, however, I am hoping I can alter the code of the (now duplicated) file so that it will omit the sidebars.

    After removing all reference to the sidebars in the template, I’m still stuck with the same problem. What follows is the code from my page-no-cols.php file:

    <?php
    /*
    Template Name: Page with No Columns
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content" class="section">
    <?php arras_above_content() ?>
    
    <?php
    if ( arras_get_option('single_meta_pos') == 'bottom' ) add_filter('arras_postfooter', 'arras_postmeta');
    else add_filter('arras_postheader', 'arras_postmeta');
    ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<?php arras_above_post() ?>
    	<div id="post-<?php the_ID() ?>" <?php arras_single_post_class() ?>>
            <?php arras_postheader() ?>
    
            <div class="entry-content">
    		<?php the_content( __('<p>Read the rest of this entry &raquo;</p>', 'arras') ); ?>
            <?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ', 'arras'),
    			'after' => '</p>', 'next_or_number' => 'number')); ?>
    		</div>
    
            <!-- <?php trackback_rdf() ?> -->
    		<?php arras_postfooter() ?>
    
            <?php if ( arras_get_option('display_author') ) : ?>
            <div class="about-author clearfix">
            	<h4><?php _e('About the Author', 'arras') ?></h4>
                <?php echo get_avatar(get_the_author_id(), 48); ?>
                <?php the_author_description(); ?>
            </div>
            <?php endif; ?>
        </div>
    
    	<?php arras_below_post() ?>
    	<a name="comments"></a>
        <?php comments_template('', true); ?>
    	<?php arras_below_comments() ?>
    
    <?php endwhile; else: ?>
    
    <?php arras_post_notfound() ?>
    
    <?php endif; ?>
    
    <?php arras_below_post() ?>
    <?php if ( get_post_custom_values('comments') ) comments_template('', true) ?>
    <?php arras_below_comments() ?>
    
    <?php arras_below_content() ?>
    </div><!-- #content -->
    
    <?php get_footer(); ?>

    Are you sure you’re wanting to remove the widgets from “Pages” or do you mean “Posts”? Only reason I ask is I don’t see any Pages on the link you posted above. If you want to modify the single Post entry template, you need to modify single.php.

    Thread Starter docbadwrench

    (@docbadwrench)

    Shows how much I know. Hah!

    I had no idea. I was basing this new template on the pages.php file. You are correct, I intend to remove all those widget-columns from Pages, not posts. I will look at the single.php file and try to adjust that for my template’s use.

    Thanks so much. ??

    Thread Starter docbadwrench

    (@docbadwrench)

    Okay, so I’ve re-edited my special Page Template with what I found in the single.php file. I removed the reference to the sidebar. As well.

    I’m starting to feel better about this. There are two things that I want to do in order to finish up the Page format.

    Here’s a picture of what I’m trying to do. Please note the embedded notes:

    https://img641.imageshack.us/img641/8861/examplez.png

    Here’s the contents of the page-no-cols.php file

    <?php
    /*
    Template Name: Page With No Columns
    */
    ?>
    <?php get_header(); ?>
    
    <div id="content" class="section">
    <?php arras_above_content() ?>
    
    <?php
    if ( arras_get_option('single_meta_pos') == 'bottom' ) add_filter('arras_postfooter', 'arras_postmeta');
    else add_filter('arras_postheader', 'arras_postmeta');
    ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<?php arras_above_post() ?>
    	<div id="post-<?php the_ID() ?>" <?php arras_single_post_class() ?>>
    
            <?php arras_postheader() ?>
    
            <div class="entry-content">
    		<?php the_content( __('<p>Read the rest of this entry &raquo;</p>', 'arras') ); ?>
            <?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ', 'arras'),
    			'after' => '</p>', 'next_or_number' => 'number')); ?>
    		</div>
    
            <!-- <?php trackback_rdf() ?> -->
    		<?php arras_postfooter() ?>
    
            <?php if ( arras_get_option('display_author') ) : ?>
                    <?php endif; ?>
        </div>
    
    	<?php arras_below_post() ?>
    	<a name="comments"></a>
    	<?php arras_below_comments() ?>
    
    <?php endwhile; else: ?>
    
    <?php arras_post_notfound() ?>
    
    <?php endif; ?>
    
    <?php arras_below_content() ?>
    </div><!-- #content -->
    
    <?php get_footer(); ?>
    Thread Starter docbadwrench

    (@docbadwrench)

    Added Detail:

    The following image is a good before-and-after example of what happened to the footer. It may provide more detail as to what’s going on with the footer.

    https://img263.imageshack.us/img263/6079/footerproblems.png

    Sorry, Despite your notes I’m still not sure what it is you’re trying to achieve. Are you wanting to display Pages and Posts in the same template?

    In order to do this, you’d probably need to run two loops: One for the Scientific Admin category, and one for the PageID you are wanting to display.

    If you’re just trying to include some static text on your category archive page, you may be able to do so with the category description.

    Again, I’m not sure this is the best advice as I don’t totally understand your notes. Have you tried posting in the theme author’s forum? https://www.arrastheme.com/forums/

    Thread Starter docbadwrench

    (@docbadwrench)

    I’m sure the error is with me and my descriptive powers. I’m so utterly new to WordPress PhP that I’m not doing my posts much justice. ??

    The following link is a scraped-together example of what I’m trying to accomplish. I hope it is more helpful.

    https://img185.imageshack.us/img185/805/examplegn.png

    It may very well be that this is a little too advanced for someone like me.I’ve received an offer from a more tech-savvy WordPress friend to take a look, so I’m hoping that will be helpful.

    Thanks for all your help in clarifying what I’m trying to do, Simple. ?? I will visit the theme author forum next (here’s my post). I hadn’t thought of that!

    Thread Starter docbadwrench

    (@docbadwrench)

    One of my online Tweety-bird friends was kind enough to determine what I screwed up in the footer.

    Within my No-Columns Page, I needed to add the </div><!– #container –> bit where noted:

    <?php arras_below_content() ?>
    
    </div><!-- #container -->
    
    </div><!-- #content -->
    
    <?php get_footer(); ?>

    One problem down – one more to go.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Omit Widget-Columns from Pages’ is closed to new replies.