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

  1. Snackmaster
    Posted 5 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. Michael
    Forum Moderator
    Posted 5 years ago #

    look into the
    'before_widget' and 'after_widget' parameter of '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
    Posted 5 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' ); ?>
    <div class="ampMe">
    if (function_exists("nggDisplayRecentImages"))
    <div><img src="/wp-content/themes/amp/images/Amp3.gif" alt="ampb" width="224" height="24" /></div>

Topic Closed

This topic has been closed to new replies.

About this Topic