Home › Forums › WoodMart support forum › Split: How to change Breadcrumbs Headin Text
Split: How to change Breadcrumbs Headin Text
- This topic has 15 replies, 2 voices, and was last updated 10 months ago by Luke Nielsen.
-
AuthorPosts
-
November 27, 2023 at 12:20 am #515711
av_admin_1984ParticipantHi
I can’t find the place for change “Home” text in this path:
Theme Settings -> Page title -> in the section “BREADCRUMBS & SEO OPTIONS” find the“Title tag” option and change it.and need to change the “Home” from breadcrumbs
November 27, 2023 at 11:36 am #515806
Luke NielsenKeymasterHello,
Please send me a screenshot for a better understanding of what you are trying to change.
Thank you in advance.
Kind Regards
November 27, 2023 at 11:54 am #515815
av_admin_1984ParticipantHere:
https://prnt.sc/ihxkRjtemo32
https://prnt.sc/qZsOpCtWTjYcI want to change the “home”
and this is the image of that path you told in old topic, but there is no option for changing the “home” label
https://prnt.sc/KiRitGA9XY8cNovember 27, 2023 at 12:23 pm #515823
Luke NielsenKeymasterHello,
The old topic was not about changing the “Home” title, it was about changing the HTML tag. In your case, in order to change the Home breadcrumb, I suggest you use the Loco Translate plugin to change it: https://take.ms/upfII
Result: https://take.ms/9Vjqsu
Kind Regards
November 27, 2023 at 12:32 pm #515831
av_admin_1984ParticipantI know what loco translate is and how to use it, thanks for the description
please add this item to your theme options
would you please tell me how to add Google Analytics code to the theme?
I’m not going to use the plugin for that, I always use the update theme and each time I have to update the code inside of the theme file,
is there any option in theme settings to allow us to add that code?November 28, 2023 at 10:31 am #516202
Luke NielsenKeymasterHello,
Sorry, but there is no such option in Theme Settings, unfortunately. The best way to add the Google Analytics code is by using this free plugin Insert Headers and Footers, have a look at the site
https://wordpress.org/plugins/insert-headers-and-footers/Kind Regards.
November 28, 2023 at 11:10 am #516228
av_admin_1984ParticipantI won’t use a plugin for this, will put code in the theme but need to know if is it possible how add the tag manager and analytics to theme using a chiled theme.
November 28, 2023 at 3:15 pm #516348
Luke NielsenKeymasterHello,
The below code will help you to add the meta tag to the head tag of your website, please paste it to the functions.php file in your child theme.
add_action( 'wp_head', function() { echo '<meta name="p:domain_verify" content="add551991282887361728df9bf830974"/>'; } );
You can also reach out to us if you have any questions.
Kind Regards
November 28, 2023 at 3:34 pm #516358
av_admin_1984ParticipantHello Luke
Thanks for this code,
1-would you please tell me how I should put the tag manager code inside of this function?
2-accorcing to using the “wp_head” is it affect the loading speed of my website?
November 28, 2023 at 4:15 pm #516406
Luke NielsenKeymasterHello,
1. Could you please clarify how the code from the tag manager looks like?
2. It should not affect. Because SEO plugins use the same “wp_head” hook to paste the meta tag to the head tag of the site (e.g https://take.ms/flnOfH).
Kind Regards
November 28, 2023 at 6:08 pm #516512
av_admin_1984ParticipantHello Luke,
1- tag manager like this:
Paste this code as high in the <head> of the page as possible:
<!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-TNBSNHLC');</script> <!-- End Google Tag Manager -->
Paste this code immediately after the opening <body> tag:
<!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TNBSNHLC" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->
2- Thanks for information
November 29, 2023 at 1:06 pm #516773
Luke NielsenKeymasterHello,
Try to use the below code for that, paste it into the functions.php file in your child theme.
add_action( 'wp_body_open', function() { echo '<!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TNBSNHLC" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->'; } ); add_action( 'wp_head', function() { echo '<!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-TNBSNHLC');</script> <!-- End Google Tag Manager -->'; } );
Kind Regards
January 18, 2024 at 12:19 am #530988
av_admin_1984ParticipantHi
There is a problem with the above code,
When I put it on function.php file, I got an error from the editor of cpanel, and when I saved it in that file, the site was not open because of this codePlease cheek in your end and give me the correct code
ThanksAttachments:
You must be logged in to view attached files.January 18, 2024 at 3:43 pm #531212
Luke NielsenKeymasterHello,
Please check this article for help: https://www.wpbeginner.com/beginners-guide/how-to-install-and-setup-google-tag-manager-in-wordpress/
Let me know the result.
Kind Regards
January 18, 2024 at 4:40 pm #531248
av_admin_1984ParticipantHey Luke Nielsen, Are you kidding me?
I know how to put the tag manager or analytics in wordpress, I want to add it with that function you gave me before, and with that php snippet, the site brackeit seems there is an issue with code …
Test the code in your endJanuary 22, 2024 at 10:28 am #532034
Luke NielsenKeymasterHello,
Please replace the old code with the below one:
add_action( 'wp_body_open', function() { echo "<!-- Google Tag Manager (noscript) --> <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=GTM-TNBSNHLC' height='0' width='0' style='display:none;visibility:hidden'></iframe></noscript> <!-- End Google Tag Manager (noscript) -->"; } ); add_action( 'wp_head', function() { echo "<!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-TNBSNHLC');</script> <!-- End Google Tag Manager -->"; } );
This one should work, here is a screenshot: https://prnt.sc/KJNblqfACEHh
Kind Regards
-
AuthorPosts
Tagged: breadcrumbs
- You must be logged in to create new topics. Login / Register