Forums

[resolved] How to edit dynamic sidebar? (5 posts)

  1. szury
    Member
    Posted 1 year ago #

    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?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try looking in your theme's functions.php file.

  3. szury
    Member
    Posted 1 year ago #

    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>',)); }

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  5. szury
    Member
    Posted 1 year ago #

    later edit:

    It works now thank you :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags