I created shortcode in my child themes functions.php.
shortcodeas follows:
function add_login_form() {
if ( is_user_logged_in() )
{
echo 'Witaj zalogowany';
}
else
{
wp_login_form();
}
}
add_shortcode('login_form', 'add_login_form');
I added a short code [login_form]to my website (test area):
http://s540141209.domenaklienta.pl/wordpress/konto-klienta/
It is added to the site after the text: "TUTAJ POWINIEN BYĆ LOGIN FORM LUB NAPIS" WITAJ ZALOGOWANY "!"
It should be inside the first div: <div class="et_pb_row">
But it is displayed immediately after the page title. Do you know why this is happening?
Thansk in advance. But this happens to show everything on the website.
source
share