My template has <h2> tags in the sidebar titles. I want to remove that h2 tag.
I opened sidebar.php and found only this:
<div id="sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : ?>
<li id="search" class="widget"><?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
I searched every template file for the <h2> tag but couldn't find any.
Can somebody help me?
Try looking in your theme's functions.php file.
there's a lot of code there but this is all that I could find related to my problem:
if(function_exists('register_sidebar')){ register_sidebar(array('name' => 'Sidebar' )); }
if(function_exists('register_sidebar')){ register_sidebar(array('name' => 'Footer')); }
I tried to change it to this with no effect:
if(function_exists('register_sidebar')){ register_sidebar(array('name' => 'Sidebar' 'before_title' => '<h4>','after_title' => '</h4>',)); }
later edit:
It works now thank you :)