I am new to WordPress, but familiar with the coding behind web design. I have found in the functions.php file where it has the “before widget”, “before title”, “after title”, “after widget”. I removed the values for before and after widget. Then I replaced the values for before and after title like so:
'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2><div id="sidebar-titles">', 'after_title' => '</div></h2>',
Then in my actual plugins/widgets you have the default code like so:
echo $before_widget . $before_title . $title . $after_title;
Editing the functions.php file as mentioned above takes care of the widgets that came standard with WordPress. Any widget I have downloaded or made myself comes out wrong. I am needing the title of the sidebar widget like so:
I am guessing there is somewhere else that declares the default values for $before_title and $after_title for my custom made widgests? They grab using
extract($args);I am guessing, I am not too sure on what else the function does.
BTW I am using the default theme that comes with the newest wordpress theme, only I have customized it totally 😀
You can see it live at http://www.shudogg.com
- The topic ‘Sidebar Widget before_title help’ is closed to new replies.