The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Add a footer image to my sidebar widget

  • # September 18, 2012 at 4:32 pm


    I’m trying to add a footer image to my sidebar widget (It has to match with the background color of the widget so I can’t just add my image as a background).

    In the functions.php file I currently have :

    register_sidebar( array (
    'name' => __( 'Sidebar 2', 'yoko' ),
    'id' => 'sidebar-2',
    'description' => __( 'An second sidebar area', 'yoko' ),
    'before_widget' => '",
    'before_title' => '

    'after_title' => '

    ) );

    In the style.css I have :

    aside.widget {
    margin: 0 0 30px 0;
    padding: 0 0 30px 0;
    font-size: .8em;
    border-bottom: 1px solid #ddd;
    background-color: #eeeeee;
    padding: 10px;

    But I'm trying to change both files to be able to change from that that sidebar to that one.

    Someone told me to add an extra span or div to the 'after_widget' parameter; then style that with your background image, but I have no clue how to do that..?

    Can someone help me ?

    Thanks !

    # September 19, 2012 at 11:21 am

    Please don’t bump items just because you haven’t had a response.

    We’ll get round to it…if we can…and we have the time / inclination.

    # September 19, 2012 at 11:57 am

    Ok, sorry.
    Thanks !

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed