Answer the question
In order to leave comments, you need to log in
How to get the site name in the original language on the error page?
Hello! You need to translate the phrase on the error page so that the link in it leads to the main page of the site.
<p>
<?php
printf(
/* translators: %s: a link to the embedded site */
__( 'It looks like nothing was found at this location. Maybe try visiting %s directly?' ),
'<strong><a href="' . esc_url( home_url() ) . '">' . esc_html( get_bloginfo( 'name' ) ) . '</a></strong>');?></p>
<p>По данному адресу ничего не найдено. Попробуйте перейти на сайт <a href="#"></a>.</p>
$name = bloginfo( 'name' );
echo '<p>'.$name.'</p>';
$url = esc_html( get_bloginfo( 'template_url' ) );
echo '<p>'.$url.'</p>';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question