Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33644
    philippe
    Member

    Securities widgets are taken into H3.
    How can I put songs widgets H2.
    What should be changed in the CSS and to make or take H2.
    thank you
    cordially
    Philippe

    #33675
    Sakin
    Keymaster

    Hi Philippe,

    We made this Catch Box theme to take H3 tag for Widget title. This cannot be change from CSS. Also why do you need to change it.

    If you really need to change then you need to create child theme and then create empty functions.php file in your child theme and then add the following code

    function catchbox_widgets_init() {
    	
    	register_widget( 'catchbox_adwidget' );
    
    	register_sidebar( array(
    		'name' => __( 'Main Sidebar', 'catchbox' ),
    		'id' => 'sidebar-1',
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h2 class="widget-title">',
    		'after_title' => '</h2>',
    	) );
    
    	register_sidebar( array(
    		'name' => __( 'Footer Area One', 'catchbox' ),
    		'id' => 'sidebar-2',
    		'description' => __( 'An optional widget area for your site footer', 'catchbox' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	register_sidebar( array(
    		'name' => __( 'Footer Area Two', 'catchbox' ),
    		'id' => 'sidebar-3',
    		'description' => __( 'An optional widget area for your site footer', 'catchbox' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	register_sidebar( array(
    		'name' => __( 'Footer Area Three', 'catchbox' ),
    		'id' => 'sidebar-4',
    		'description' => __( 'An optional widget area for your site footer', 'catchbox' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Title widgets taken H3 tag’ is closed to new replies.