WordPress.org

Support

Support » Themes and Templates » Add "columbs" custom templates.

Add "columbs" custom templates.

Viewing 4 replies - 1 through 4 (of 4 total)
  • in your footer, you can do something like:

    <div id="widget-footer">
                        <div class="container_24 clearfix">
    <? /* Begin Box Here */?>
                            <div class="grid_6">
                                <?php if ( ! dynamic_sidebar( '1Footer' ) ) : ?>
                                  <!--Widgetized Footer-->
                                <?php endif ?>
                            </div>
    <? /* End Box Here */ ?>
                        </div>
                    </div>

    then, for each of the boxes you define, in your functions.php put:

    register_sidebar(array(
       'name'          => '1Footer',
       'id'            => '1footer-sidebar',
       'description'   => __( 'Located at the bottom of pages.'),
       'before_widget' => '<div id="%1$s" class="widget-footer">',
       'after_widget'  => '</div>',
       'before_title'  => '<h5>',
       'after_title'   => '</h5>',
       )
     );

    that will add the locations and allow you to place “widgets” into them 🙂

    just repeat the steps for the boxes (copy from begin box to end box to duplicate and change the name)

    I’m sorry luckdragon,I’m not quite proficient enough with css to follow all of this. I assume this code will go into the template custom css and that I insert “widget-before-footer” in the first line. Then do I change all “footer” references to “before-footer”? And what about references to “1footer”? Does this actually create sidebars in the before footer widget? Where do I find “functions.php” and can I paste your code in just changing “1footer…” to “before-footer”?
    Or…can I more easily insert a 3 column 1 row table into the before-footer widget?If so, how do I do that? I apologize for my ineptitude but I really appreciate you sharing your knowledge. Thanks Jean

    using your image as a reference, the 1Footer section that I said goes in the footer (footer.php of your theme) creates one of the boxes you specified in your image

    the code that goes in the functions.php (of your theme) creates a widget area for the box you placed in the footer.

    for each box, you need a matching set of code with matching names (replace the 1Footer with whatever name you want

    thanks 😀

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add "columbs" custom templates.’ is closed to new replies.
Skip to toolbar