Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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?

    #370779

    Hey 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,
    Elliott

    #370948

    thx!
    Is this solution update safe?

    #371191

    Hey!

    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/2111f9c4b816b8589dd4

    Adjust the values in case of a different number of footer columns.

    Best regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.