i need to set an ID selector to the WordPress Search Widget in the sidebar.
Currently, the search widget is the only one in the sidebar included just in a simple <li>[WIDGET CODE]</li>. I need it to be <li id="searchwidget">[WIDGET CODE]</li>. I took a look to widget.php but i didn’t figure out what and where to modify. Maybe something in $before_widget?
Maybe you could try to set the before_widget contained in functions.php inside your theme folder. I think it’ll do the trick without having to edit a core file.
Viewing 1 replies (of 1 total)
The topic ‘Search WIdget – Add ID’ is closed to new replies.