• Resolved David

    (@thatseoguydavid)


    Hello,
    I want to add a class above and below my widgets so I can add some css images but im not sure how to go about doing it, I believe i need to add it them to the functions.php but am not quite sure how to do this. my site is ablog4you.net.

    I just need a push in the right direction, and if you could help me with the functions override in my childtheme i would also appreciate it, I have been searching for a solution since yesterday.

    the html output i want would look something like this:

    <div class=”container-top”>
    </div>
    <li id=”categories-3″ class=”widget-container widget_categories”>
    <h3 class=”widget-title”>Topics</h3>

    • No categories

    <div class=”container-bottom>
    </div>

    or something like that, thanks for any help you can offer.

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter David

    (@thatseoguydavid)

    also i notice in your examples above the li isn’t closed anymore is that ok?

    Thread Starter David

    (@thatseoguydavid)

    ha it worked you guys rock!!!!!

    thanks a lot

    Thread Starter David

    (@thatseoguydavid)

    oh and i did add the closing li tag dont know if that makes a difference

    Yeah in my original example, the li was unclosed. That was just a case of superfast cut and pasting. So it’s a good catch and glad you fixed it. Also glad it worked for ya.

    Also, yes, you can rename your functions as you like…as long as you remember to call them properly.

    If you are just starting down the road of child theme stuff, check this out.
    http://voodoopress.com/2011/02/modifying-headers-from-a-twentyten-child-theme/

    It doesn’t talk about sidebars, it’s about editing twentyten’s headers. But I explain what’s going on with the whole after_setup_theme thing….which can help you down the road with child theme stuff

    Thread Starter David

    (@thatseoguydavid)

    thanks alot for your help and the header link is something I was actually looking for so thanks for that as well. I just subscribed to your site.

    @zoonini thanks for your help I think that you broke the record for fastest response time ever.

    You’re very welcome. 🙂 Glad you’ve got things working as you’d like.

    If this issue is solved, if you’d please mark this thread as “resolved” it would be appreciated. Helps everyone keep better track of whose issues are still outstanding. Feel free to start a new thread if you have more questions – thanks!

    Thread Starter David

    (@thatseoguydavid)

    there was a slight problem with the syntax above, if you’re going to do this use li classess instead of div classes, so instead of <div class=”container-top”> you would use <li class=”container-top”>

Viewing 7 replies - 16 through 22 (of 22 total)

The topic ‘styling widgets(adding classes to functions)?’ is closed to new replies.