Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1269715
    MIGELANDREY
    Participant

    Hi, where to find http: //m-stroy.rus/wp-admin/theme-editor.php file = functions.php & theme = x-Hild?

      I added detsoy topic <meta name = “yandex-verification” content = “17ec209d9fd10e00” /> I PERMUT al work site completely. I do not know how naydti server nursery theme. How to update the theme? Not something is not working. I did everything back through the backup, I would just like to know where you can put a tag? <Meta name = “yandex-verification” content = “17ec209d9fd10e00” /> Thank you

    #1269719
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    Then add following code in your child theme function.php file:

    function add_custom_meta(){ ?>
      <meta name = “yandex-verification” content = “17ec209d9fd10e00” />
    <?php }
    add_action('wp_header', 'add_custom_meta');

    Let us know how it goes.

    Thanks.

    #1270138
    MIGELANDREY
    Participant

    Hi, I added code first down, not working. Then the top, does not work

    #1270142
    MIGELANDREY
    Participant

    Add the code for the home page of your site (in the head section) meta tag:
    <Meta name = “yandex-verification” content = “17ec209d9fd10e00” /> It is necessary to do so

    #1270145
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! Sorry there was a typo error in the code provided. Please update it and use this instead:

    function add_custom_meta(){ ?>
      <?php if (is_home() || is_front_page() ) : ?> 
        <meta name = "yandex-verification" content = "17ec209d9fd10e00" />
      <?ph endif; ?>
    <?php }
    add_action('wp_header', 'add_custom_meta');

    Please notice that I have corrected the quotes because in the previous code it is invalid. I also added a condition so that this meta tag will only appear in your homepage.

    We would loved to know if this has work for you. Thank you.

    #1270154
    MIGELANDREY
    Participant

    DOES NOT WORK

    #1270157
    MIGELANDREY
    Participant
    #1270168
    Rad
    Moderator

    Hi there,

    Your child theme is not active which is why it’s not working. Please go to Admin > Appearance > Themes and activate your child theme.

    Thanks!

    #1270171
    MIGELANDREY
    Participant

    , I stopped working SITE

    #1270173
    MIGELANDREY
    Participant

    I make a backup again. I already was so when I put the code in the children’s theme

    #1270175
    MIGELANDREY
    Participant

    How to work? There must always be activated children’s theme? In all cases?

    #1270177
    Rupok
    Member

    Hi there,

    Did you activate Child Theme after placing the code within Child Theme’s functions.php? This is simple and should work fine if you do it properly.

    Meantime you can try this plugin as well – https://wordpress.org/plugins/add-meta-tags/

    Cheers!

    #1270179
    MIGELANDREY
    Participant
    #1270182
    MIGELANDREY
    Participant

    Please, please detail how? I do have on everyone, all I tried. Website stopped working as soon as I put the code. I am a children’s theme is first activated, then I put, and obarot did the same.

    #1270184
    Darshana
    Moderator

    Hi there,

    Copy the above code and add it below the following comment line.

    // Additional Functions
    // =============================================================================

    Then you should not receive any errors.

    Let us know how it goes.
    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1269715 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>