Archived topic
HTML code of home page.
6 replies · Started by mohamedhassan on September 16, 2017
Hi GP team,
Let me know please, how can I get to the HTML code of my site's home page?
to add this code <meta name="yandex-verification" content="3a9105017b5523d4" /> in the "head" section
to verify my site at Yandex.
regards,
Mohamed
Hi there,
Try the wp_head hook: https://docs.generatepress.com/article/hooks-overview/
For only front page, try this and check execute PHP:
<?php if ( is_front_page() ) : ?>
code here
<?php endif; ?>
I made the following
<?php if ( is_front_page() ) : ?>
<meta name="yandex-verification" content="3a9105017b5523d4" />
<?php endif; ?>
and I get this result http://www.gloobally.com/wp-admin/options.php
So what is the result? That link needs admin access.
What is the code supposed to do?
Please open the link below.
https://gmkr.io/s/59be241ea5d5ba6b41656cbd/0
THE code is supposed to verify my site property at Yandex Webmaster Tools:
It's just a warning. But if you are sure the code is fine then it shouldn't be a problem.
Might be worth checking with wherever this code came from to see why it triggers such an error.