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. |
1 Attachment(s)
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:
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"> At HTML/CSS Inserts -> CSS Inserts add, i.e. HTML Code:
table.six-cells { HTML Code:
<table class="two-cells" border="0" cellspacing="0" cellpadding="0"> HTML Code:
table.two-cells { 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:
|
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. |
I suggest that you stay with your current version unless you need something that is only in 3.3.2
|
Thanks for this...I'll give it a shot tomorrow. Sorry for the late reply...had computer problems to fix.
|
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? |
You can use any plain text editor, one that doesn't add any formatting. Notepad or Notepad++ (free) or if you're looking for something more powerful Ultraedit
The theme is still changing a lot under the hood even though I try to avoid this due to the huge number of existing installations. You could as well just use the current version, customize that, leave out the next 2-3 versions and upgrade then. |
I've decided to work with UltraEdit...the problem I have is that I don't know how to properly save my file...when I go to "save as" there is no .PHP file extension there.
Maybe it's the way I'm extracting the information from my site. I'm just copying and pasting the coding. Is there a better way to open the index.php file in UltraEdit? |
There should be no need to choose a "Save as PHP", if you just give it the name i.e. "index.php" Ultraedit should automatically figure out that it is PHP. Most likely a settings issue, PHP is a every day task for Ultraedit.
P.S.: I am currently using Notepad++ because I changed computers and didn't have the old Ultraedit license code anymore. But I am about to buy Ultraedit again. I just couldn't make up my mind yet between the U3 version for a USB stick and the desktop version. |
Okay, I'll look into that and try saving it the way you suggest.
So copying and pasting the coding directly into UltraEdit is alright then? |
I have this all figured out. Your suggestions are correct. Thanks!
|
Hi,
I've followed the template/cell information you've suggested, which was easy to follow. However I have a couple of questions please: - I've lost the rightside bar. Any ideas why this may be? - When creating pages I select the 2-cell template but the onscreen display doesnt change and I'm unable to edit/input into each 'cell' of the table. Inputting text and images doesn't indicate where each part will be, and in which cell. The only way I've been able to get the information to appear in the correct cell is paste the text into the 2-cell template page, via the editor. This would be ok for one page but I have about 20 pages I wish to use the 2 cell layout for. Surely that's the point of a template, so therefore I think I've done something wrong. - The information, once pasted in (see point above) appears above the Page heading. Can't see where or why. This may well be related to template problems I've been having. Please let me know if more information is needed to help solve the issues. Eagerly awaiting your response |
Quote:
- Rightside bar is back! I realised that I'd not copied index.php correctly and was missing some content. Having created a new two-cells template I've now got it back to how it should be. - Cant see any way to edit the text other than direct on to the template.....but then it's not a template any more....and i'll need to create a new 'template' for every page. Is this what I should be doing or is something not working correctly? Please can someone help me |
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 |
All figured out now......sorted it myself. Either I misread the instructions or they weren't quite clear.
|
All times are GMT -6. The time now is 03:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.