Tagged: headings
-
AuthorPosts
-
May 3, 2023 at 12:53 am #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?May 3, 2023 at 1:47 am #1406277Hey 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,
MikeMay 3, 2023 at 11:41 am #1406324I added this code but it doesn’t work.
May 3, 2023 at 11:51 am #1406326Hi,
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,
MikeMay 3, 2023 at 12:34 pm #1406335Hi 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.May 3, 2023 at 2:16 pm #1406348if 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 );
May 3, 2023 at 5:13 pm #1406361Hi,
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,
MikeMay 3, 2023 at 6:24 pm #1406369Thanks 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?May 3, 2023 at 8:03 pm #1406383Hi,
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.- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- 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 ). - Click ” Submit “.
- 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.
- Please note that we will not receive emails at this mailbox.
When your issue is fixed, you can always remove the plugin!
Best regards,
MikeMay 8, 2023 at 11:45 pm #1406808This reply has been marked as private.May 8, 2023 at 11:49 pm #1406809ok – allready posted to include a priority. Sorry did not read again.
May 9, 2023 at 12:13 am #1406814May 9, 2023 at 3:14 pm #1406894Ok. Please try to log in.
May 10, 2023 at 12:13 am #1406946May 10, 2023 at 5:03 pm #1407016Hi Mike, please try again.
May 11, 2023 at 6:28 pm #1407142Hi,
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,
MikeMay 15, 2023 at 6:09 pm #1407462Hope you can log in now.
May 15, 2023 at 6:34 pm #1407463Hi,
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,
MikeMay 16, 2023 at 10:57 am #1407535Thank you for your help.
I will open new threads for the other issues.May 16, 2023 at 11:31 am #1407554Hi,
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 -
AuthorPosts
- The topic ‘H3 tags in the footer’ is closed to new replies.