WordPress.org

Support

Support » How-To and Troubleshooting » Widget – How To Customize with images?

Widget – How To Customize with images?

  • How can I add add background images for the Title and borders around all my widgets?

    I manually create my sidebar for now but would like to modify “widget” code & css once if possible.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    look into the
    ‘before_widget’ and ‘after_widget’ parameter of ‘register_sidebar’

    http://codex.wordpress.org/Function_Reference/register_sidebar

    if you could post (or use a pastebin if the code is longer) the code of your manually made ‘widgets’, someone might be able to suggest how to implement the html into the ‘register_sidebar’ parameter.

    a link to your site might help.

    Thanks alchymyth, before and after look promising.

    Here’s an example of my manual NextGEN Gallery box:

    <div class="ampBox">
    <div class="amp11">
    <h3 class="widget-title">
    <?php _e( 'Gallery', 'twentyten' ); ?>
    </h3>
    </div>
    <div class="ampMe">
    <?php
    if (function_exists("nggDisplayRecentImages"))
    {nggDisplayRandomImages(4,80,80);}
    ?>
    </div>
    <div><img src="/wp-content/themes/amp/images/Amp3.gif" alt="ampb" width="224" height="24" /></div>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widget – How To Customize with images?’ is closed to new replies.