WordPress.org

Forums

Add "columbs" custom templates. (5 posts)

  1. bjornesjo
    Member
    Posted 2 years ago #

    Hello, how do i add custom appearance to different pages?

    like this one: http://www.mooveagency.com/

    i want to have some info like this pictures, The blue color is content and i want it to be in 3 or more columns . See image:
    http://img844.imageshack.us/img844/9991/44302837.jpg

    Thanks

  2. luckdragon
    Member
    Posted 2 years ago #

    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)

  3. jeanbledsoe
    Member
    Posted 2 years ago #

    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

  4. luckdragon
    Member
    Posted 2 years ago #

    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

  5. bjornesjo
    Member
    Posted 2 years ago #

    thanks :D

Topic Closed

This topic has been closed to new replies.

About this Topic