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 » Header configuration & styling »

Header & Footer Code for Single Page?


  #1  
Old Sep 15, 2011, 12:44 PM
GRF
 
76 posts · Mar 2011
I'm using v3.6.4 and trying to put some PHP code in a seperate .php page but need to know what the code is to include the header and footer details so that the file looks just like a normal page with all the header,footer and other elements of the page.

I tried using the following but it doesn't work.

<?php get_header(); ?>

<?php
MY CODE
?>

<?php get_footer(); ?>
  #2  
Old Sep 15, 2011, 02:58 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
start with a copy of index.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 15, 2011, 09:11 PM
GRF
 
76 posts · Mar 2011
Quote:
Originally Posted by juggledad
start with a copy of index.php
Can you please be more specific? I tried this code below and complains of missing functions.

Contents of resourcepartners.php

<?php /* get all options: */
# error_reporting(-1);

list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();

get_header();

extract($bfa_ata);

MY PHP CODE

?>

<?php get_footer(); ?>

Last edited by GRF; Sep 15, 2011 at 10:24 PM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put code in loop with instruction for single.php? annsworld Center area post/pages 5 Dec 1, 2012 09:52 PM
Adding Adsense code below Title in Single Posts mkellam Center area post/pages 3 May 9, 2011 04:01 PM
[SOLVED] Add Adsense section targeting code to single.php Stefan72 Center area post/pages 13 Nov 24, 2010 05:58 AM
[SOLVED] Hard code a single page menu link to an existing (non-wordpress) website jms5017 Page & Category Menu Bars 4 Aug 3, 2010 04:45 AM
How to add php code to a 'single' page JakeThePeg Center area post/pages 8 Mar 21, 2010 01:21 AM


All times are GMT -6. The time now is 04:01 PM.


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