Hi Guys, I am working on a WordPress theme and am coming up with an issue with widgets. I have a widget that I want to style individually into a CSS drop down box. I want to add a ul div above the widget and the only option I have to do this is globally, for all widgets... I have went into the actual plugin's code and discovered that there may be a way for to manyually add my <ul> but this code is present: // These lines generate our output. Widgets can be very complex // but as you can see here, they can also be very, very simple. echo $before_widget . $before_title . $options['Title'] . $after_title; Code (markup): I need to set $before_widget so that the <ul ="idname"> tag is added before the widget but I do not know how to correctly amend the line of code above to do this, can someone please help? As you can see, I am certainly no .php expert or even novice for that matter
$before_widget .= 'your code here'; Note the dot, that puts the string after the content of $before_widget.