Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #511644

    Hi,

    How can I Change Widget Title from H3 to H4/H5?
    Thanks.

    Regards,
    Stefan

    #511658

    Hey tvgverlag!

    I don’t recommend changing those for SEO purposes but if you really want to then you can do so in the /enfold/includes/admin/register-widget-area.php file.

    		'before_title' => '<h3 class="widgettitle">', 
    		'after_title' => '</h3>',
    

    Cheers!
    Elliott

    #513655

    Hi Elliott,

    Thanks for your answer. I’ve change the register-widget-area.php, but that doesn’t works. You can look on
    http://enfold.tvg.de/telefonbuch-berlin. It works only in the Footer.

    I want to change that, because it does not look nice with the large font in the sidebar.

    Regards,
    Stefan

    #513888

    Hey!

    Please open the file and search “widgettitle” and change all h3 tags wrapping “widgettitle” class. There are several in the same file.

    Cheers!
    Yigit

    #514169

    Hi Yigit,

    that’s exactly what I’ve done

    here you can see it:
    <?php
    // global $wp_registered_sidebars;
    #########################################

    register_sidebar(array(
    ‘name’ => ‘Displayed Everywhere’,
    ‘before_widget’ => ‘<section id=”%1$s” class=”widget clearfix %2$s”>’,
    ‘after_widget’ => ‘<span class=”seperator extralight-border”></span></section>’,
    ‘before_title’ => ‘<h5 class=”widgettitle”>’,
    ‘after_title’ => ‘</h5>’,
    ‘id’=>’av_everywhere’
    ));

    register_sidebar(array(
    ‘name’ => ‘Sidebar Blog’,
    ‘before_widget’ => ‘<section id=”%1$s” class=”widget clearfix %2$s”>’,
    ‘after_widget’ => ‘<span class=”seperator extralight-border”></span></section>’,
    ‘before_title’ => ‘<h5 class=”widgettitle”>’,
    ‘after_title’ => ‘</h5>’,
    ‘id’=>’av_blog’
    ));

    register_sidebar(array(
    ‘name’ => ‘Sidebar Pages’,
    ‘before_widget’ => ‘<section id=”%1$s” class=”widget clearfix %2$s”>’,
    ‘after_widget’ => ‘<span class=”seperator extralight-border”></span></section>’,
    ‘before_title’ => ‘<h5 class=”widgettitle”>’,
    ‘after_title’ => ‘</h5>’,
    ‘id’=>’av_pages’
    ));

    if(class_exists( ‘woocommerce’ ))
    {

    register_sidebar(array(
    ‘name’ => ‘Shop Overview Page’,
    ‘before_widget’ => ‘<section id=”%1$s” class=”widget clearfix %2$s”>’,
    ‘after_widget’ => ‘<span class=”seperator extralight-border”></span></section>’,
    ‘before_title’ => ‘<h5 class=”widgettitle”>’,
    ‘after_title’ => ‘</h5>’,
    ‘id’=>’av_shop_overview’
    ));

    register_sidebar(array(
    ‘name’ => ‘Single Product Pages’,
    ‘before_widget’ => ‘<section id=”%1$s” class=”widget clearfix %2$s”>’,
    ‘after_widget’ => ‘<span class=”seperator extralight-border”></span></section>’,
    ‘before_title’ => ‘<h5 class=”widgettitle”>’,
    ‘after_title’ => ‘</h5>’,
    ‘id’=>’av_shop_single’
    ));

    }

    //dynamic widgets

    #footer
    $footer_columns = avia_get_option(‘footer_columns’,’5′);

    for ($i = 1; $i <= $footer_columns; $i++)
    {
    register_sidebar(array(
    ‘name’ => ‘Footer – column’.$i,
    ‘before_widget’ => ‘<section id=”%1$s” class=”widget clearfix %2$s”>’,
    ‘after_widget’ => ‘<span class=”seperator extralight-border”></span></section>’,
    ‘before_title’ => ‘<h5 class=”widgettitle”>’,
    ‘after_title’ => ‘</h5>’,
    ‘id’=>’av_footer_’.$i
    ));
    }

    //dummy widgets

    function avia_dummy_widget($number)
    {
    switch($number)
    {
    case 1:
    $title = apply_filters(‘widget_title’, __(‘Interesting links’,’avia_framework’) );

    ?>
    <section class=’widget’>
    <h5 class=’widgettitle’><?php echo $title; ?></h5>
    <span class=’minitext’><?php _e(‘Here are some interesting links for you! Enjoy your stay :)’,’avia_framework’);?></span>
    </section>
    <?php
    break;

    case 4:
    $title = apply_filters(‘widget_title’, __(‘Archive’,’avia_framework’) );

    echo “<section class=’widget widget_archive’>”;
    echo “<h5 class=’widgettitle’>” . $title . “</h5>”;
    echo “

      “;
      wp_get_archives(‘type=monthly’);
      echo “

    “;
    echo “<span class=’seperator extralight-border’></span></section>”;
    break;

    case 3:
    $title = apply_filters(‘widget_title’, __(‘Categories’,’avia_framework’) );

    echo “<section class=’widget widget_categories’>”;
    echo “<h5 class=’widgettitle’>” . $title . “</h5>”;
    echo “

      “;
      wp_list_categories(‘sort_column=name&optioncount=0&hierarchical=0&title_li=’);
      echo “

    “;
    echo “<span class=’seperator extralight-border’></span></section>”;
    break;

    case 2:
    $title = apply_filters(‘widget_title’, __(‘Pages’,’avia_framework’) );

    echo “<section class=’widget widget_pages’>”;
    echo “<h5 class=’widgettitle’>” . $title . “</h5>”;
    echo “

      “;
      wp_list_pages(‘title_li=&depth=-1’ );
      echo “

    “;
    echo “<span class=’seperator extralight-border’></span></section>”;
    break;

    case 5:
    $title = apply_filters(‘widget_title’, __(‘Bookmarks’,’avia_framework’) );

    echo “<section class=’widget widget_archive’>”;
    echo “<h5 class=’widgettitle’>” . $title. “</h5>”;
    echo “

      “;
      wp_list_bookmarks(‘title_li=&categorize=0’);
      echo “

    “;
    echo “<span class=’seperator extralight-border’></span></section>”;
    break;
    }
    }

    #514593

    Hey!

    If the problem is just the font size then add this to your custom CSS to make them smaller.

    aside h3 {
        font-size: 15px !important;
    }

    The ones in your sidebar are not actually widget titles but custom elements your using in a text widget.

    Best regards,
    Elliott

    #515037

    Hi Elliott,

    the size alone was not the reason, but I can live with this solution ;)
    Thanks!

    Best Regards
    Stefan

    p.s. there are certainly many more questions arise * g

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Widget Title’ is closed to new replies.