
-
AuthorPosts
-
December 19, 2014 at 3:04 pm #370575
I have “Display the footer widget & socket” at the “Default Footer Widgets & Socket Settings”.
Widget Titles are now within h3, but it want it wihtin h4-tags.
What ist the best way to change this?December 19, 2014 at 10:03 pm #370779Hey bosbach!
If this is for SEO purposes then you’ll need to open up /enfold/includes/admin/register-widget-area.php and change all of the H3 to H4. There are quite a few of them.
echo "<h3 class='widgettitle'>" . $title . "</h3>";
If your just trying to change their size then you can use CSS.
#footer .widgettitle { font-size: 14px !important; }
Regards,
ElliottDecember 20, 2014 at 11:36 am #370948thx!
Is this solution update safe?December 21, 2014 at 6:48 am #371191Hey!
It’s not, but if you are using a child theme you can register your own widget areas in the child functions.php:
function custom_footer_widgets() { register_sidebar(array( 'name' => 'Custom Footer Widget 1', 'before_widget' => '<section id="%1$s" class="widget clearfix %2$s">', 'after_widget' => '<span class="seperator extralight-border"></span></section>', 'before_title' => '<h4 class="widgettitle">', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Custom Footer Widget 2', 'before_widget' => '<section id="%1$s" class="widget clearfix %2$s">', 'after_widget' => '<span class="seperator extralight-border"></span></section>', 'before_title' => '<h4 class="widgettitle">', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Custom Footer Widget 3', 'before_widget' => '<section id="%1$s" class="widget clearfix %2$s">', 'after_widget' => '<span class="seperator extralight-border"></span></section>', 'before_title' => '<h4 class="widgettitle">', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Custom Footer Widget 4', 'before_widget' => '<section id="%1$s" class="widget clearfix %2$s">', 'after_widget' => '<span class="seperator extralight-border"></span></section>', 'before_title' => '<h4 class="widgettitle">', 'after_title' => '</h4>', )); } add_action( 'widgets_init', 'custom_footer_widgets' );
Simultaneously you’d need to have a modified version of footer.php in your child theme directory:
https://gist.github.com/josueochoa/2111f9c4b816b8589dd4Adjust the values in case of a different number of footer columns.
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.