Forums
Home / Fixing WordPress / Where can I find the Code behind a Widget?
(@xdesi)
14 years, 4 months ago
Hi,
I’ve got a default theme dragged a couple of widgets over like “archives” and “categories”..but where is the code located behind these??
Why, because I need to add a bit of HTML in them for my theme so:
<h2 class="widgettitle">Widget</h2>
Becomes <h2 class="widgettitle">Widget Name <span>My Extra Span in Every Widget Title</span></h2>
<h2 class="widgettitle">Widget Name <span>My Extra Span in Every Widget Title</span></h2>
(@esmi)
You can customise widget markup using register_sidebar in your theme’s functions.php