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 » 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,672 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 10:53 PM.


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