• These codes R put where the widgets will show up in index page.

    <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘left_column’)) : else : ?>
    <p>Widget Ready</p>
    <p>This left_column is widget ready! Add one in the admin panel.</p>
    <?php endif; ?>

    This code is in functions.php

    if (function_exists(‘register_sidebar’)) {

    register_sidebar(array(
    ‘name’ => ‘Left Column’,
    ‘id’ => ‘left_column’,
    ‘description’ => ‘Widget area for home page left column’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’
    )); }

    Now How To Put Css in the custom widget that will be put in that area.
    I will use a text widget.

  • The topic ‘How To Put Css in custom widget’ is closed to new replies.