Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #727928

    Hi there!
    For seo purposes I am trying to achieve an update-proof change of the h3 tags in the footer widgets to h4 tags. I tried to use the hints in https://kriesi.at/support/topic/change-template-code-in-child-theme/, but don’t seem to manage changing the code so it applies for the footer widgets instead of sidebar widgets.
    Any help is very much appreciated! Thanks.

    #727935

    Hi tinip!

    Can you please create a temporary WP and FTP logins and post them here privately so we can look into it?
    Best regards,
    Yigit

    #727939

    Thanks for getting be to me so fast, Yigit!
    Unfortunately the site is still local.

    The code that was recommended in the post was made for changes in the sidebar widgets. I would need this for the footer widgets. I tried to change it with the use of information in the registered-widget-area.php of the parent theme, but no luck.

    function ava_remove_some_widgets(){
    	unregister_sidebar( 'av_everywhere' );
    
        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' => '<h2 class="widgettitle">',
        	'after_title' => '</h2>',
        	'id'=>'av_everywhere'
        ));
    }
    add_action( 'widgets_init', 'ava_remove_some_widgets', 11 );
    #728320

    Hi,

    Please add following code to Functions.php file of your child theme in Appearance > Editor

    function ava_remove_footer_widgets(){
    	unregister_sidebar( 'av_footer_1','av_footer_2','av_footer_3','av_footer_4','av_footer_5' );
    
        register_sidebar(array(
    			'name' => 'Footer - column1',
    			'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_1'
        ));
            register_sidebar(array(
    			'name' => 'Footer - column2',
    			'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_2'
        ));
            register_sidebar(array(
    			'name' => 'Footer - column3',
    			'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_3'
        ));
            register_sidebar(array(
    			'name' => 'Footer - column4',
    			'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_4'
        ));
            register_sidebar(array(
    			'name' => 'Footer - column5',
    			'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_5'
        ));
    }
    add_action( 'widgets_init', 'ava_remove_footer_widgets', 11 );

    You would need to update your widget areas.

    Enjoy your holidays!

    Best regards,
    Yigit

    #728466

    Great, thanks so much!

    #728478

    Hi,

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Change h3 tags in footer widget – Child theme of Enfold’ is closed to new replies.