-
AuthorPosts
-
September 30, 2015 at 4:17 pm #511644
Hi,
How can I Change Widget Title from H3 to H4/H5?
Thanks.Regards,
StefanSeptember 30, 2015 at 4:30 pm #511658Hey 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!
ElliottOctober 5, 2015 at 12:02 pm #513655Hi 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,
StefanOctober 5, 2015 at 4:07 pm #513888Hey!
Please open the file and search “widgettitle” and change all h3 tags wrapping “widgettitle” class. There are several in the same file.
Cheers!
YigitOctober 6, 2015 at 7:58 am #514169Hi 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;
}
}October 6, 2015 at 5:04 pm #514593Hey!
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,
ElliottOctober 7, 2015 at 9:19 am #515037Hi Elliott,
the size alone was not the reason, but I can live with this solution ;)
Thanks!Best Regards
Stefanp.s. there are certainly many more questions arise * g
-
AuthorPosts
- The topic ‘Widget Title’ is closed to new replies.