Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
  • #1406273

    There are H3 tags on our footer. We need to change it for SEO purposes but there is no option.
    how do we change it to a normal text?


    Hey menainfosec,
    Try this solution
    Or try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_script() { ?>
    window.addEventListener('DOMContentLoaded', function() {
    (function($) {       
      function replaceElementTag(targetSelector, newTagString) {
          var newElem = $(newTagString, {html: $(this).html()});
          $.each(this.attributes, function() {
            newElem.attr(this.name, this.value);
      replaceElementTag('#footer h3.widgettitle', '<p></p>');
    add_action('wp_footer', 'custom_script');

    But if you use this script you will need to not defer jQuery

    Best regards,


    I added this code but it doesn’t work.


    Your jQuery seems to be deferred, please check your caching plugins and try disabling your CDN and disable:
    Enfold Theme Options ▸ Performance ▸ Load jQuery in your footer
    If this doesn’t help try this solution or include an admin login in the Private Content area for us to check.

    Best regards,


    Hi Mike,
    I disabled the Load jQuery, but I am not sure how to disable CDN and if it will hurt our website.
    We are using Cloudfare, so giving access is very complicated.


    if you load jQuery in your footer try to give to the script above a priority: 999 f.e.
    so the last line is then:
    add_action('wp_footer', 'custom_script', 999);

    or if you try that link from mike – now the footer got 6 columns (Enfold 5.6) option – then change to:

    function ava_re_register_footer_widgets(){
    	$footer_columns = avia_get_option( 'footer_columns', '6' );
    	for( $i = 1; $i <= $footer_columns; $i++ ){	
    		unregister_sidebar('av_footer_' . $i );
    		register_sidebar( array(
    			'name'		=> 'Footer - Column ' . $i,
    			'before_widget'	=> '<section id="%1$s" class="widget clearfix %2$s">',
    			'after_widget'	=> '<span class="seperator extralight-border"></span></section>',
    			'before_title'	=> '<p class="widgettitle">',
    			'after_title'	=> '</p>',
    			'id'		=> 'av_footer_' . $i
    		) );
    add_action( 'widgets_init', 'ava_re_register_footer_widgets', 11 );

    Thanks Guenni007
    If this doesn’t help then include an admin login in the Private Content area so we can examine your settings.

    Best regards,


    Thanks for the replies. I added the last line but it doesn’t work.
    Giving login is too complicated for us. Could you please guide us step by step here?


    Unfortunately, there are too many different reasons this isn’t working for you, we would just be guessing, try using the Temporary Login Without Password plugin.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
    7. Please note that we will not receive emails at this mailbox.

    When your issue is fixed, you can always remove the plugin!

    Best regards,

    This reply has been marked as private.

    ok – allready posted to include a priority. Sorry did not read again.


    Please see below

    Best regards,


    Ok. Please try to log in.


    Thanks, but I get the error below

    Best regards,


    Hi Mike, please try again.


    Thank you for your patience, I see the Cloudflare Access is now disabled and the WordPress login now shows so I tried a password recovery to try to login, but it didn’t send me a login link. Please check.

    Best regards,


    Hope you can log in now.


    Thanks for the login to your site, I see that in your child theme functions.php you had an unclosed comment line:
    this caused all code below it to be disabled, I closed the comment line for you and now the script changes the h3 footer widget tags to paragraph tags:
    Please clear your browser cache and check and let us know this is now successful and we will close this thread.
    If you have any additional issues please open a new thread so we can assist, we try to keep each thread on topic, thank you for your patience and understanding and for using Enfold.

    Best regards,


    Thank you for your help.
    I will open new threads for the other issues.


    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘H3 tags in the footer’ is closed to new replies.