Adding widgets to a single column template (2 posts)

  1. ivbenoit
    Posted 6 years ago #

    We are using a single column template called Capricorn and would like to add widgets. Since this template does not have any sidebars is this possible?

    Thank you in advance.

  2. Evita
    Posted 6 years ago #

    Of course, you can.
    Put this into your functions.php

    if (function_exists('register_sidebar') )
    register_sidebars(6 (or any other number), array(


    and in your template files wherever you want this

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?> <?php endif; ?>
    and this
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?> <?php endif; ?>
    and so on.

Topic Closed

This topic has been closed to new replies.

About this Topic