Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Want to have just the content area in my custom page template with just the header


  #1  
Old Apr 11, 2012, 05:53 AM
sanjayks
 
6 posts · Apr 2012
Hi,
I am looking for a custom page template with only the header image and menu and the content area spanning the full width without any side bars along with the footer.
Currently I have been able to remove the lists which have the side bars but the space left by side bars still is empty an dthe content does not stretch to the full width.Below is the code which I copied from index.php and modified. Atahualpa theme 3.7.3
Please help where to modify the code.

--------------------------------------------------------------------------
<?php
/*
Template Name: Custom Page Template
*/
?>
<?php
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 // Deactivated since 3.6.5
# include 'bfa://content_above_loop';
// Uses the following static code instead: ?>
<?php bfa_next_previous_page_links('Top'); // For MULTI post pages if activated at ATO -> Next/Previous Navigation: ?>

<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>

<?php // Deactivated since 3.6.5
#include 'bfa://content_inside_loop';
// Uses the following static code instead: ?>
<?php bfa_next_previous_post_links('Top'); // For SINGLE post pages if activated at ATO -> Next/Previous Navigation ?>
<?php /* Post Container starts here */
if ( function_exists('post_class') ) { ?>
<div <?php if ( is_page() ) { post_class('post'); } else { post_class(); } ?> id="post-<?php the_ID(); ?>">
<?php } else { ?>
<div class="<?php echo ( is_page() ? 'page ' : '' ) . 'post" id="post-'; the_ID(); ?>">
<?php } ?>
<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>
<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
</div><!-- / Post -->

<?php endwhile; ?>

<?php // Deactivated since 3.6.5
# include 'bfa://content_below_loop';
// Uses the following static code instead: ?>
<?php bfa_next_previous_post_links('Middle'); // Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: ?>
<?php bfa_get_comments(); // Load Comments template (on single post pages, and static pages, if set on options page): ?>
<?php bfa_next_previous_post_links('Bottom'); // Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: ?>
<?php bfa_archives_page('<div class="archives-page">','</div>'); // Archives Pages. Displayed on a specific static page, if configured at ATO -> Archives Pages: ?>
<?php bfa_next_previous_page_links('Bottom'); // Displayed on MULTI post pages if activated at ATO -> Next/Previous Navigation: ?>

<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>

<?php // Deactivated since 3.6.5
#include 'bfa://content_not_found';
// Uses the following static code instead: ?>
<h2><?php _e('Not Found','atahualpa'); ?></h2>
<p><?php _e("Sorry, but you are looking for something that isn't here.","atahualpa"); ?></p>

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

<?php get_footer(); ?>
  #2  
Old Apr 11, 2012, 06:45 AM
juggledad's Avatar
juggledad
 
23,630 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
there is a 'HOWTO: create a 'no sidebar' template (or 1, 2, 3 or 4 sidebar template)' in the Gold Forums Tutorials.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 11, 2012, 10:20 PM
sanjayks
 
6 posts · Apr 2012
Thanks,but unfortunately I'm unable to access the gold forums.It shows no posts available to me.
I have solved the problem of content displaying on the full width of the page without the side bars. Now I need just the menu bars at the top to vanish. I just need the header image to be displayed.
Any options to do this with Atahualpa 3.7.3 ?

Thanks in advance.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
background color for the border area OUTSIDE the page/blog content area johnh44 Center area post/pages 3 May 4, 2011 02:27 PM
static page template - content above the loop nano91 Center area post/pages 3 Mar 4, 2011 10:50 AM
[SOLVED] Template with Custom Header -- No Image epsymp Header configuration & styling 9 Mar 2, 2011 05:20 PM
Problem with adding a pic to custom post template in center area frankhamm Center area post/pages 2 Mar 15, 2010 06:38 AM


All times are GMT -6. The time now is 09:16 AM.


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