Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   How do I remove colums on a page? I want full width for some pages... (http://forum.bytesforall.com/showthread.php?t=21430)

mrjak01 Jan 24, 2014 04:36 PM

How do I remove colums on a page? I want full width for some pages...
 
I don't know why I am not figuring this one out.. derp!

Thanks

This is an old template that I have that won't work anymore:


PHP Code:


<?php
/*
Template Name: Full Page / No Side Bar
*/
 
?>
<?php 
// Do not delete these lines ?>
<?php     
/* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH '/functions/bfa_get_options.php');
global 
$bfa_ata;

$left_col ="off";
$left_col2 "off";
$right_col2 "off";
$right_col "off";
    
get_header(); ?>

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] = 0/* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>

    <?php /* This outputs the next/previous post or page navigation. 
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
    
bfa_center_content($bfa_ata['content_above_loop']); ?>

    <?php /* The LOOP starts here. Do this for all posts: */
    
while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
    
        <?php /* Add Odd or Even post class so post containers can get alternating CSS style (optional) */
        
$odd_or_even = (($bfa_ata['postcount'] % 2) ? 'odd-post' 'even-post' ); ?> 

        <?php /* This is the actual Wordpress LOOP. 
        The output can be edited at Atahualpa Theme Options -> Style & edit the Center column */
        
bfa_center_content($bfa_ata['content_inside_loop']); ?>
                        
    <?php /* END of the LOOP */
    
endwhile; ?>

<?php /* This is the new widget area Home Page Posts*/ ?>
<?php 
if (is_home()) { ?>
<?php 
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Page Posts') ) : endif; ?>
<?php 
}; ?>


<?php /* This outputs the next/previous post or page navigation and the comment template.
    This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_below_loop']); ?>
    
    
<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_not_found']); ?>

<?php endif; /* END of: If there are no posts */ ?>

<?php bfa_center_content($bfa_ata['center_content_bottom']); ?>

<?php get_footer(); ?>


juggledad Jan 24, 2014 08:22 PM

see HOWTO: create a 'no sidebar' template (or 1, 2, 3 or 4 sidebar template)

mrjak01 Jan 25, 2014 07:04 PM

Heya JD,

I'd check this out but I no longer have access to that portion of the site.

Thanks though!


All times are GMT -6. The time now is 10:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.