[wp-hackers] custom layout for admin widget area

Christian Foster christian.foster at gmail.com
Thu Apr 22 13:25:51 UTC 2010

This might help - this is the Widgets Page template from the hybrid
theme - not 100 sure it would work without the rest of the theme but
it will show you the idea, you are replacing the content with a
sidebar that contains various widgets - in the backend you can call
that widget area "Home Page" or similar. Obviously you want to remove
all the hybrid_ functions.

 * Template Name: Widgets
 * The Widgets template is a page template that is completely
widgetized. It houses the
 * 'Widgets Template' widget area. Customizations to this page should
be done through widgets.
 * @link http://themehybrid.com/themes/hybrid/page-templates/widgets
 * @package Hybrid
 * @subpackage Template

get_header(); ?>

	<div id="content" class="hfeed content">

		<?php hybrid_before_content(); // Before content hook ?>

		<?php dynamic_sidebar( 'utility-widgets-template' ); ?>

		<?php wp_reset_query(); ?>

		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

			<?php edit_post_link( __( 'Edit', 'hybrid' ), '<p
class="entry-meta"><span class="edit">', '</span></p>' ); ?>

			<?php hybrid_after_singular(); // After singular hook ?>

			<?php comments_template( '/comments.php', true ); ?>

			<?php endwhile; ?>

		<?php else: ?>

			<p class="no-data">
				<?php _e( 'Sorry, no page matched your criteria.', 'hybrid' ); ?>
			</p><!-- .no-data -->

		<?php endif; ?>

		<?php hybrid_after_content(); // After content hook ?>

	</div><!-- .content .hfeed -->

<?php get_footer(); ?>

On Thu, Apr 22, 2010 at 6:34 PM, studio <studio at bpmedia-design.com> wrote:
> Hi,
> i need to have a frontpage completley widgetised, i know how to do that..
> but in the backend (the admin section) i want to have it in the same layout
> as the frontpage, so I/the customer can drop new content in the right widget
> box instead of looking if the widget name corresponds to the frontpage
> so, is it possible to to create a custom layout for the widget page, and is
> so... how?
> thanks in advance
> Peter
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list