Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1156294

    odaikan
    Participant

    Hi, Guys! I have quick question.
    I just joined one of the affiliate program, and they ask me to following, but I am not sure how to do it.


    “Copy the following meta tag and paste it into the home page of your website, in the <head> section and before the <body> section.
    <meta name=’B-verify’ content=’85382952a60f5bb72953ec3bafa2a283e96ecf70′ />”

    So, should I copy “_header.php” from X-them(main) and pasted to child theme (exact path within your child theme), then insert above code between <head>and <body>?

    Thank you!

    #1156322

    Rupok
    Member

    Hi there,

    Thanks for writing in! Yes you can use /framework/views/global/_header.php in your Child Theme. Also a plugin like this (https://wordpress.org/plugins/add-meta-tags/) will do the the job.

    Cheers!

    #1198190

    odaikan
    Participant

    Hello,
    Unfortunately, it did not work. I might put wrong location. Here is my codes.

    <?php

    // =============================================================================
    // VIEWS/GLOBAL/_HEADER.PHP
    // —————————————————————————–
    // Declares the DOCTYPE for the site and includes the <head>.
    // =============================================================================

    ?>

    <!DOCTYPE html>
    <!–[if IE 9]><html class=”no-js ie9″ <?php language_attributes(); ?>><![endif]–>
    <!–[if gt IE 9]><!–><html class=”no-js” <?php language_attributes(); ?>><!–<![endif]–>

    <head>
    <meta name=’B-verify’ content=’85382952a60f5bb72953ec3bafa2a283e96ecf70′ />
    <?php wp_head(); ?>
    </head>

    <body <?php body_class(); ?>>

    <?php do_action( ‘x_before_site_begin’ ); ?>

    <div id=”top” class=”site”>

    <?php do_action( ‘x_after_site_begin’ ); ?>

    #1198238

    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Meanwhile, you can use this custom code in your child theme’s functions.php file

    function add_custom_meta(){ ?>
      <meta name="B-verify" content="85382952a60f5bb72953ec3bafa2a283e96ecf70" />
    <?php }
    add_action('wp_header', 'add_custom_meta');

    Please let us know how it goes.

    #1220240

    odaikan
    Participant
    This reply has been marked as private.
    #1220374

    Paul R
    Moderator

    Hi,

    I am getting a 403 forbidden error trying to access your site.

    http://screencast.com/t/tUKf6IbUDt8H

    Please check and let us know.

    Thanks

    #1221718

    odaikan
    Participant
    This reply has been marked as private.
    #1221935

    Paul R
    Moderator

    Hi,

    I can see the code getting added in your site.

    http://screencast.com/t/0hSIGm4TJ

    Does it still doesn’t work?

    Kindly verify the code again from your source.

    Thanks

    #1224899

    odaikan
    Participant

    Hi, Finally it worked! Thank you very much!

    I have another question. If I want to add more meta tag like above, should I use same code or should I insert different code?

    For example,

    function add_custom_meta(){ ?>
      <meta name="p:domain_verify" content="f0aab85784f1df86741eab5a58f45a59"/>
    <?php }
    add_action('wp_header', 'add_custom_meta');
    #1225010

    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! If you want to add more meta tag, simply update the given code and use something like this;

    function add_custom_meta(){ ?>
      <meta name="p:domain_verify" content="f0aab85784f1df86741eab5a58f45a59"/>
      <!-- more meta tag here -->
      <!-- more meta tag here -->
      <!-- more meta tag here -->
      <!-- more meta tag here -->
    <?php }
    add_action('wp_header', 'add_custom_meta');

    Hope this helps.

    #1227789

    odaikan
    Participant

    It works!!
    Thank you guys!

    #1227863

    Paul R
    Moderator

    You’re welcome! 🙂