Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Placing cells within the pages of my site


  #1  
Old Mar 19, 2009, 09:24 PM
nickcee
 
27 posts · Feb 2009
Placing cells within the pages of my site

Hi,

I have several questions....I felt it would be best to place them all into one post so you can get over all idea of what I'm trying to do to the structure of my site.

- I would like to place aprox. two to six cells into the body of my site pages, Is it possible to do this on certain pages but not others? Can one page have two cells and another have six cells?


- In the header and header image area of my site I would like to split both into two cells.


- I would like to move the navigation bar to sit right above the header image.


- I would also like to get rid of the sidebars on all of the pages of my site....unless it's not advisible to do this.

Last edited by nickcee; Apr 5, 2009 at 11:08 PM. Reason: would like to change the layout of my site
  #2  
Old Apr 6, 2009, 11:58 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
1) Probably best to create a page template for this, then go editing the pages where you want to use this page template, an option "templates" will be there (which wasn't there when you had no page templates). Choose "Six Cells" there.

To create a page template, make a copy of index.php as i.e. "six-cells.php".

At the very top of six-cells.php, put this:

PHP Code:
<?php
/*
Template Name: Six Cells
*/
?>


Edit six-cells.php and put a table with 6 cells wherever you want it, i.e.

right after <?php get_header(); ?> to have it on the top of the middle columns

or right before <?php get_footer(); ?> to have it at the bottom of the middle column.


HTML Code:
<table class="six-cells" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="cell1"> CELL 1 </td>
<td class="cell2"> CELL 2 </td>
<td class="cell3"> CELL 3 </td>
<td class="cell4"> CELL 4 </td>
<td class="cell5"> CELL 5 </td>
<td class="cell6"> CELL 6 </td>
</tr>
</table>


At HTML/CSS Inserts -> CSS Inserts add, i.e.

HTML Code:
table.six-cells {
width: 100%;
...other styles
}
table.six-cells td {
padding-right: 10px;
}
td.cell6 {
padding-right: 0;
}
Create a template for the 2 cells too: file name "two-cells.php", Template name "Two Cells".

HTML Code:
<table class="two-cells" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="cell1"> CELL 1 </td>
<td class="cell2"> CELL 2 </td>
</tr>
</table>
CSS Insert

HTML Code:
table.two-cells {
width: 100%;
...other styles
}
table.two-cells td.cell1 {
padding-right: 10px;
}
Upload both page templates to the theme's main directory i.e. /wp-content/themes/atahualpa332/

Wordpress will automatically recognize these page templates and they will be available when you edit or create a page. See attached image


3.) See Theme Options -> Header -> Configure Header Area


4.) Theme Options -> Sidebars -> Uncheck all checkboxes at
LEFT sidebar: Display on: / RIGHT sidebar: Display on:


2.) You will have to edit bfa_header_config.php for this, and repeat this change with each theme update. It would be cleaner to turn off header parts you don't want at Theme Options -> Header -> Configure Header Area, and then add your new content in header.php

PHP Code:
       <!-- Header -->
        <td id="header" colspan="<?php echo $cols?>">
Your content HERE -->        
        <?php bfa_header_config($bfa_ata['configure_header']); ?>
Or, your content HERE -->
        </td>
        <!-- / Header -->
I will add 1, 2, 3, 4, 5 cell widget areas in the next theme versions. The way the header is now is not flexible enough however editing bfa_header_config seems very wasteful to me since you have to re-do this and I'll change the header area anyway.
Attached Thumbnails
Click image for larger version

Name:	page-template.gif
Views:	3308
Size:	50.0 KB
ID:	86  
  #3  
Old Apr 6, 2009, 12:20 PM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Speaking of the next theme revision: since I had done so many changes to the header file, I'm wondering if I should hold steady at version 3.2 and wait for your next version? If you're going to make the header more flexible, that might be a good thing for me to do, no?

I would love to be able to easily do what I have now: the logo area has an our image logo in the left cell of a 2-cell table row, and an ad banner is in the right.
  #4  
Old Apr 6, 2009, 12:48 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I suggest that you stay with your current version unless you need something that is only in 3.3.2
  #5  
Old Apr 10, 2009, 10:37 PM
nickcee
 
27 posts · Feb 2009
Thanks for this...I'll give it a shot tomorrow. Sorry for the late reply...had computer problems to fix.
  #6  
Old Apr 13, 2009, 07:32 PM
nickcee
 
27 posts · Feb 2009
Please excuse my newbie question but....what type of editing program should I be using to add the new coding and then upload my new template pages? Gees, I feel dumb asking that. Sorry Flynn.

Another question...regarding the header. Your suggesting that I wait on making any changes to the header area right?

Last edited by nickcee; Apr 13, 2009 at 07:37 PM.
  #7  
Old May 21, 2009, 03:32 PM
Brussells
 
9 posts · May 2009
AH....what's going on! Now the template is showing on EVERY page, despite certain pages having the Default Template selected, and not the Two Cell Template selected.

Assistance would be great
  #8  
Old May 22, 2009, 02:13 AM
Brussells
 
9 posts · May 2009
All figured out now......sorted it myself. Either I misread the instructions or they weren't quite clear.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Placing widgets on pages mactony Sidebars & Widgets 45 Nov 1, 2010 02:06 PM
placing a few ad banner in header area monochrome Header configuration & styling 21 Feb 1, 2010 03:10 PM
Placing Flash ad banners in a sidebar timdevogel Sidebars & Widgets 5 Jul 16, 2009 02:19 PM
Placing a Box Around Text gradlebum Atahualpa 3 Wordpress theme 1 Jul 15, 2009 11:18 AM
Newbie here. How do I place sidebar in pages? No side bars are shown in pages. xtrong Sidebars & Widgets 12 Jul 10, 2009 07:24 PM


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


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