Tagged: 

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

    Hi,
    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?

    #1406277

    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() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($) {       
      function replaceElementTag(targetSelector, newTagString) {
        $(targetSelector).each(function(){
          var newElem = $(newTagString, {html: $(this).html()});
          $.each(this.attributes, function() {
            newElem.attr(this.name, this.value);
          });
          $(this).replaceWith(newElem);
        });
      }
      replaceElementTag('#footer h3.widgettitle', '<p></p>');
    }(jQuery)); 
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_script');

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

    Best regards,
    Mike

    #1406324

    I added this code but it doesn’t work.

    #1406326

    Hi,
    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,
    Mike

    #1406335

    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.

    #1406348

    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 );
    #1406361

    Hi,
    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,
    Mike

    #1406369

    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?

    #1406383

    Hi,
    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,
    Mike

    #1406808
    This reply has been marked as private.
    #1406809

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

    #1406814

    Hi,
    Please see below

    Best regards,
    Mike

    #1406894

    Ok. Please try to log in.

    #1406946

    Hi,
    Thanks, but I get the error below

    Best regards,
    Mike

    #1407016

    Hi Mike, please try again.

    #1407142

    Hi,
    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,
    Mike

    #1407462

    Hope you can log in now.

    #1407463

    Hi,
    Thanks for the login to your site, I see that in your child theme functions.php you had an unclosed comment line:
    Enfold_Support_2081.jpeg
    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:
    Enfold_Support_2083.jpeg
    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,
    Mike

    #1407535

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

    #1407554

    Hi,
    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,
    Mike

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