-
Author
-
October 22, 2013 at 00:38 #4840bananalustParticipant
Hi – thanks for the great theme. Just looking at the code I can see you’ve put a lot of work into it. Great job! I did have a question about before_widget I don’t want <h2> before the widget – but it seems like there is some override somewhere in the theme….I tried modifying the call in widgets.php in wordpress itself and that didn’t help – and nothing i do at the individual widget level seems to work. Where can I get rid of the h2? Please just indicate a file and directory. Best, Leah
October 22, 2013 at 21:12 #4893SQadminKeymasterHi, Thanks you,
You just need to add this function that overrides the default one:COPY CODEfunction sweetdate_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', 'kleo_framework' ), 'id' => 'sidebar-1', 'description' => __( 'Default sidebar', 'kleo_framework' ), 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', ) ); register_sidebar(array( 'name' => 'Footer Widget 1', 'id' => 'footer-1', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Widget 2', 'id' => 'footer-2', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Widget 3', 'id' => 'footer-3', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Widget 4', 'id' => 'footer-4', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Level 1 - Widget 1', 'id' => 'footer-level1-1', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Level 1 - Widget 2', 'id' => 'footer-level1-2', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Level 2', 'id' => 'footer-level-2', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Shop Sidebar', 'id' => 'shop-1', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); }
And by default it is a H5
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.