Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Template Page with only widget (http://forum.bytesforall.com/showthread.php?t=3085)

abovocipher Aug 21, 2009 07:42 PM

Template Page with only widget
 
Hi, I am very impressed with this theme. I created a template paged but I want to remove the header, content, and right column. I would like to only show the left column with the widget contents. I haven't been able to get the code right since this theme is alittle tricker when you are trying to edit the code in the .php files. Any suggestions?

Thanks alot.

-Jeff

Flynn Aug 23, 2009 12:27 PM

Create a page template such as

<?php
/*
Template Name: Only left sidebar
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
...copy whatever other parts from header.php you may need, i.e. references to stylesheet and JS ...
</head>
<body>
...your HTML...
<?php dynamic_sidebar('Left Sidebar'); ?>
...your HTML...
</body>
</html>

abovocipher Aug 23, 2009 09:12 PM

Hey Flynn,

Thanks for the code, but it doesn't seem to work. I don't know why I didnt think of this earlier but I just pulled all the code from the header.php except for the parts where it called title, image, etc.. and it was able to keep the formatting :) Thanks for the help

-Jeff


All times are GMT -6. The time now is 05:49 AM.

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