Support » Plugins » Modifying class tags for div’s on widgets with widget title

  • I’m trying to fine tune my theme for my site and I need to have the widget title show up as the class of a div. I would like each widget to be able to have it’s own image associated with that div and I’ve tried a bunch of things with no luck. Here’s my code from functions.php:

    if ( function_exists(‘register_sidebar’) ) {
    ‘before_widget’ => ‘<div class=”box”>

  • ‘,
    ‘after_widget’ => ‘
  • </div>’,
    ‘before_title’ => ‘<h2>’,
    ‘after_title’ => ‘</h2><div class= ” NEED TITLE HERE”></div>’,

    I obviously need it where it says NEED TITLE HERE. I figure I could just access the variable title for each widget and be done with it but I couldn’t get anything to work. I’m fairly new to php so forgive me if this is obvious and if this is in the wrong forum please feel free to move it.

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Nobody has any idea how to use the variable for the title of the widget?

    Can anyone tell me where I can find the pages and archives code for the widgets?


Viewing 1 replies (of 1 total)
  • The topic ‘Modifying class tags for div’s on widgets with widget title’ is closed to new replies.