hi!
the link in
You must be logged in to post a comment.
refers to the standard URL (http://<homepage>/wp-login.php).
Is there a possibility to change this to a custom link within the theme?
regards,
fri_z
Hey Fritz!
Please add following code to Functions.php file in Appearance > Editor and change the link as needed
function add_custom_login_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('p.must-log-in a').attr('href','YOUR LINK GOES HERE');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_login_target');
Regards,
Yigit
Great. Works fine. thx.
Actually I found another solution without Javascript here: http://rocketgeek.com/tips-and-tricks/redirecting-wordpress-login-and-logout-urls/