• Resolved mkdll

    (@mkdll)


    Hello there.
    I have a page created with elementor, using elementor canvas as a template. There’s a network which requires to add an HTML Meta Tag (example <meta name=”generic-site-verification” content=”9629a1c85743d1fd326c8e1234″>) to the header to verify that I own the website. I installed this plugin and added that HTML Meta tag as “custom HTML” using elementor, then I checked “Display Layout on Elementor Canvas Template? and I also selected it as “Header” in “Select the type of template this is” but the meta tag code isn’t working in my page.
    I would appreciate any help. (I’m really new at this)
    Thanks.

    • This topic was modified 7 years, 1 month ago by mkdll.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nikhil Chavan

    (@nikschavan)

    Hello @mkdll,

    How are you adding this meta tag?

    If you are using Elementor Canvas Template Elementor loads it’s own template so if you are adding the verification code in the header.php of your child theme, it will not work.

    Yoast SEO allows verifying the domain, This should work even if you are using the Elementor Canvas template.

    See this doc from Yoast SEO – https://kb.yoast.com/kb/how-to-connect-your-website-to-google-webmaster-tools/

    Thread Starter mkdll

    (@mkdll)

    Hi.
    I tried using Yoast SEO with no luck at all.
    Before that I tried creating a new page using your plugin, I put the meta tag code there using custom HTML widget and then checking “Display Layout on Elementor Canvas Template?” and still no luck with being able to validate my original page.
    Maybe I’m doomed to not being able to add a meta tag validator in my page ?? lol
    Thanks.

    Plugin Author Nikhil Chavan

    (@nikschavan)

    Hello @mkdll,

    Something like this will work for you –

    function your_prefix_add_meta_tag() {
    	?>
    
    	<!-- Your HTML Markup here -->
    
    	<?php
    }
    
    add_action( 'wp_head', 'your_prefix_add_meta_tag' );

    Add this to the functionns.php of your child theme and this should work.

    Thread Starter mkdll

    (@mkdll)

    Thank you for that. ??

    macsumit

    (@macsumit)

    Facing similar issue.
    I have verified my domain successfully via Yoast plugin.

    I added google analytics tracking-code meta tag in the header.php (child theme).
    I am using header-footer-Builder (with Elementor canvas) plugin therefore GA tracking code is not working.

    Is there any solution?
    As i don’t want to install another plugin just for Google Analytics.

    Thanks in advance

    Plugin Author Nikhil Chavan

    (@nikschavan)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘HTML Meta tag not working?’ is closed to new replies.