Answer the question
In order to leave comments, you need to log in
How to display text in wordpress only on site.com/ru/?
There is one site page site.com/ru/ and you need to put text on it below before the footer and you can’t do this through the admin panel, I just want to insert something like this into the footer:
IF URL PAGE = site.com/ru/ THAN ECHO" here is our text "
How to do it right?
Answer the question
In order to leave comments, you need to log in
In index.php paste
<?php
if ($_SERVER['REQUEST_URI'] == "/ru/"){
echo "Some text";
}
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question