Home Forums WoodMart support forum Split: How to change Breadcrumbs Headin Text

Split: How to change Breadcrumbs Headin Text

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #515711

    av_admin_1984
    Participant

    Hi
    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

    #515806

    Luke Nielsen
    Keymaster

    Hello,

    Please send me a screenshot for a better understanding of what you are trying to change.

    Thank you in advance.

    Kind Regards

    #515815

    av_admin_1984
    Participant

    Here:
    https://prnt.sc/ihxkRjtemo32
    https://prnt.sc/qZsOpCtWTjYc

    I 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/KiRitGA9XY8c

    #515823

    Luke Nielsen
    Keymaster

    Hello,

    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

    #515831

    av_admin_1984
    Participant

    I 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?

    #516202

    Luke Nielsen
    Keymaster

    Hello,

    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.

    #516228

    av_admin_1984
    Participant

    I 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.

    #516348

    Luke Nielsen
    Keymaster

    Hello,

    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

    #516358

    av_admin_1984
    Participant

    Hello 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?

    #516406

    Luke Nielsen
    Keymaster

    Hello,

    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

    #516512

    av_admin_1984
    Participant

    Hello 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

    #516773

    Luke Nielsen
    Keymaster

    Hello,

    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

    #530988

    av_admin_1984
    Participant

    Hi

    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 code

    Please cheek in your end and give me the correct code
    Thanks

    Attachments:
    You must be logged in to view attached files.
    #531212

    Luke Nielsen
    Keymaster
    #531248

    av_admin_1984
    Participant

    Hey 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 bracke

    it seems there is an issue with code …
    Test the code in your end

    #532034

    Luke Nielsen
    Keymaster

    Hello,

    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

Tagged: 

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