Different sidebar for static front page

0 views
Skip to first unread message

DanFlan

unread,
Jun 11, 2009, 10:21:40 AM6/11/09
to K2 Support
Hi All,

I'm having a few difficulties modifying a static front page (http://
www.use-more.com),

I want the sidebar on this page to be different to the sidebars on
other pages—I'm trying to remove the search from the front page only..

I've created a duplicate sidebar (sidebarfront.php), but when I change
the tag in the template file from:

<?php get_sidebar(); ?>

to

<?php get_sidebarfront(); ?>

the sidebar loads blank..

Is there an obvious reason or fix for this?

Cheers

Dan

Advice For You

unread,
Jun 11, 2009, 1:03:44 PM6/11/09
to k2-su...@googlegroups.com
Hi Dan

I've often just use the K2 Widgets Manager which allows you to set which
widegts are shown in the sidebar(s) and on what pages/posts.

Hope this helps.

Dan

Steve Lam

unread,
Jun 11, 2009, 5:10:00 PM6/11/09
to k2-su...@googlegroups.com
rename sidebarfront.php to:

sidebar-front.php

and use:

<?php get_sidebar('front'); ?>

DanFlan

unread,
Jun 11, 2009, 8:48:29 PM6/11/09
to K2 Support
Ahh genius!

Worked perfectly!

Thanks so much,

Dan
Reply all
Reply to author
Forward
0 new messages