GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   WORDPRESS: how do i have a different design on a page? (https://gfy.com/showthread.php?t=832999)

MetaMan 06-05-2008 10:07 AM

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.

Jesmine22 06-05-2008 10:14 AM

check my new Bustybabe theme, you can add custom headers, but not different one's on different pages , its located at mywpthemes.net

MetaMan 06-05-2008 10:17 AM

Quote:

Originally Posted by Jesmine22 (Post 14283262)
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 06-05-2008 10:55 AM

bump 2 da tooop

AlienQ - BANNED FOR LIFE 06-05-2008 11:04 AM

http://www.fozzilinymoo.org/Fozzolog...-4.640x480.jpg

dav3 06-05-2008 11:46 AM

A different design on a single page, while the rest has a 'main' design?

MetaMan 06-05-2008 11:50 AM

Quote:

Originally Posted by dav3 (Post 14283732)
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.

fris 06-05-2008 04:44 PM

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

MetaMan 06-05-2008 04:48 PM

Quote:

Originally Posted by Fris (Post 14285408)
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.

fris 06-05-2008 04:53 PM

<?php include (TEMPLATEPATH . '/header2.php'); ?>

should work fine

MetaMan 06-05-2008 05:14 PM

Quote:

Originally Posted by Fris (Post 14285460)
<?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. :)

just a punk 06-05-2008 06:05 PM

Quote:

Originally Posted by MetaMan (Post 14285574)
what happens if my template doesnt have pages.php?

That means you have an appropriate section in the main template.

just a punk 06-05-2008 06:23 PM

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.

MetaMan 06-06-2008 06:58 AM

Quote:

Originally Posted by cyberxxx (Post 14285860)
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
:thumbsup


All times are GMT -7. The time now is 08:38 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123