• I have a 4 page site , is it possible to add different widgets on the side to each page but using 1 template?

Viewing 1 replies (of 1 total)
  • In theory yes but I’ve not tried it myself yet. You’d need to make your page template widget ready in the same way that you widgetize a sidebar – except you’d also need to use the is_page() conditional to determine what widget area is shown on what page.

    <?php if (function_exists('dynamic_sidebar') {
    if (is_page('About') && dynamic_sidebar('About')) ) get_sidebar('about');
    elseif (is_page('Foo') && dynamic_sidebar('Foo')) ) get_sidebar('foo');
    }?>

    As I said, that’s the general idea – in theory…

Viewing 1 replies (of 1 total)
  • The topic ‘Is it possible to add editable widgets to specific pages’ is closed to new replies.