WordPress.org

Ready to get started?Download WordPress

Forums

Style my widget? (1 post)

  1. popart
    Member
    Posted 6 years ago #

    I've added a sidebar widget, but I don't know how to style it. Please help...

    Here is my sidebar.php:
    <div id="sidebar">
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar() ) : ?>
    <div class="title">About</div>
    <p>This is my blog.</p>
    <div class="title">Links</div>

    <?php endif; ?>
    </div>

    Here is my functions.php:
    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    'before_title' => '<div class="title">',
    'after_title' => '</div>',
    ));
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic