is it possible to use jQuery to do that:
if the body has a <div id="wpadminbar">
then change the document.location.href in this input from
<input type="button" onclick="document.location.href='/wp-login.php?action=register';" value="Forum" id="forum">
to
<input type="button" onclick="document.location.href='/forum';" value="Forum" id="forum">
if($('#wpadminbar').length > 0) {
$('#forum').attr('onClick', "document.location.href='/forum';");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With