Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-05-2008, 10:07 AM   #1
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
WORDPRESS: how do i have a different design on a page?

when i go:

Manage > Pages then select my page

i get a code page with "title" and Page "visual/html"


but then when i add in code into this page it puts <p> around my new code for some odd reason,

any idea how i have a different looking design for a page? i just need the same template but i need to add in a different part to the header.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 10:14 AM   #2
Jesmine22
Registered User
 
Jesmine22's Avatar
 
Join Date: Jul 2006
Posts: 43
check my new Bustybabe theme, you can add custom headers, but not different one's on different pages , its located at mywpthemes.net
Jesmine22 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 10:17 AM   #3
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by Jesmine22 View Post
check my new Bustybabe theme, you can add custom headers, but not different one's on different pages , its located at mywpthemes.net
shut your mouth you lil spamming tramp, i dont want or need your wpthemes i can outdesign your crap without even breaking a sweat.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 10:55 AM   #4
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
bump 2 da tooop
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 11:04 AM   #5
AlienQ - BANNED FOR LIFE
best designer on GFY
 
AlienQ - BANNED FOR LIFE's Avatar
 
Join Date: Mar 2003
Location: IALIEN.COM - High Definition Video and Photographic Productions -ICQ 78943384
Posts: 30,307
AlienQ - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 11:46 AM   #6
dav3
Confirmed User
 
dav3's Avatar
 
Industry Role:
Join Date: May 2007
Posts: 7,348
A different design on a single page, while the rest has a 'main' design?
__________________
Webmasters :: Juicy Ads :: ACWM :: Crak Revenue :: Money Tree
dav3 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 11:50 AM   #7
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by dav3 View Post
A different design on a single page, while the rest has a 'main' design?
exactly,

the page has the regular design, but i want to add in info just under the header.

i still dont get why when i add in code it is adding <p> around everything i put into the page edit.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 04:44 PM   #8
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,382
edit page.php in your theme directory, inside page.php you will find

<?php get_header(); ?>

<?php get_sidebar(); ?>

instead of that you can just use an include for a different header, do the same with footer.

page.php is the file used for pages
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 04:48 PM   #9
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by Fris View Post
edit page.php in your theme directory, inside page.php you will find

<?php get_header(); ?>

<?php get_sidebar(); ?>

instead of that you can just use an include for a different header, do the same with footer.

page.php is the file used for pages
friggin amazing, i cant believe i missed that, i will try it when i get home.

thank you so much. much appreciated. it is amazing how the smallest problem can have the simplest solution.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 04:53 PM   #10
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,382
<?php include (TEMPLATEPATH . '/header2.php'); ?>

should work fine
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 05:14 PM   #11
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by Fris View Post
<?php include (TEMPLATEPATH . '/header2.php'); ?>

should work fine
what happens if my template doesnt have pages.php? just make it? i moved over an old wodpress to a new one.

off to baseball, thanks for your help! ill try to repay you one day when in need.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 06:05 PM   #12
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,387
Quote:
Originally Posted by MetaMan View Post
what happens if my template doesnt have pages.php?
That means you have an appropriate section in the main template.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2008, 06:23 PM   #13
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,387
If there is no page template and no appropriate section the main template, you can always do a simple check to determine is it a page or anything else. E.g.:

<?php
if (is_page()) {
include (TEMPLATEPATH . '/header2.php');
} else {
include (TEMPLATEPATH . '/header1.php');
}
?>
?>

Or something like that.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2008, 06:58 AM   #14
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Quote:
Originally Posted by cyberxxx View Post
If there is no page template and no appropriate section the main template, you can always do a simple check to determine is it a page or anything else. E.g.:

<?php
if (is_page()) {
include (TEMPLATEPATH . '/header2.php');
} else {
include (TEMPLATEPATH . '/header1.php');
}
?>
?>

Or something like that.
something along the lines of this worked, thanks for the help! AMAZING
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.