![]() |
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. |
check my new Bustybabe theme, you can add custom headers, but not different one's on different pages , its located at mywpthemes.net
|
Quote:
|
bump 2 da tooop
|
|
A different design on a single page, while the rest has a 'main' design?
|
Quote:
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. |
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 |
Quote:
thank you so much. much appreciated. it is amazing how the smallest problem can have the simplest solution. |
<?php include (TEMPLATEPATH . '/header2.php'); ?>
should work fine |
Quote:
off to baseball, thanks for your help! ill try to repay you one day when in need. :) |
Quote:
|
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. |
Quote:
: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