modify before_widget to spit out title
-
if ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’
creates ‘type of widget’+’3″
such as using a text widget will create an ID of
id=”text-4″
how do i get it to possibly be
id=”title of widget”
say i title my widget ‘about the coach’
i want my id=”about-the-coach” or something like that.
- The topic ‘modify before_widget to spit out title’ is closed to new replies.