Tagged: x
-
AuthorPosts
-
November 24, 2016 at 11:03 am #1269715
MIGELANDREYParticipantHi, 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
November 24, 2016 at 11:13 am #1269719
Prasant RaiModeratorHello 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.
November 24, 2016 at 8:51 pm #1270138
MIGELANDREYParticipantHi, I added code first down, not working. Then the top, does not work
November 24, 2016 at 8:54 pm #1270142
MIGELANDREYParticipantAdd 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 soNovember 24, 2016 at 9:05 pm #1270145
Rue NelModeratorHello 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.
November 24, 2016 at 9:50 pm #1270154
MIGELANDREYParticipantDOES NOT WORK
November 24, 2016 at 9:54 pm #1270157
MIGELANDREYParticipantNovember 24, 2016 at 10:18 pm #1270168
RadModeratorHi 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!
November 24, 2016 at 10:23 pm #1270171
MIGELANDREYParticipant, I stopped working SITE
November 24, 2016 at 10:25 pm #1270173
MIGELANDREYParticipantI make a backup again. I already was so when I put the code in the children’s theme
November 24, 2016 at 10:28 pm #1270175
MIGELANDREYParticipantHow to work? There must always be activated children’s theme? In all cases?
November 24, 2016 at 10:30 pm #1270177
RupokMemberHi 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!
November 24, 2016 at 10:38 pm #1270179
MIGELANDREYParticipantNovember 24, 2016 at 10:48 pm #1270182
MIGELANDREYParticipantPlease, 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.
November 24, 2016 at 10:53 pm #1270184
DarshanaModeratorHi 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! -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1269715 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
