WordPress.org

Ready to get started?Download WordPress

Forums

Widget - How To Customize with images? (3 posts)

  1. Snackmaster
    Member
    Posted 3 years ago #

    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.

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    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.

  3. Snackmaster
    Member
    Posted 3 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic