Hello,
I’ve started using a plugin for registration, and i have created a page for login and registration forms, both of the forms are on the same page /register/. My question is how to make the my-account widget from the header to redirect me to the page for registration/login if the person is not logged into his account and if he is, to send him to /my-account/ instead of opening off-canvas or drop-down thanks in advance.
my-account url: naddar.com/my-account/
login/register url: naddar.com/register/
Hello, Jordan
Thank you for reaching out. Please note that additional customization of code is beyond the scope of our basic support.
add_filter('header_account_link', function($link) {
if ( !get_query_var( 'et_is-loggedin', false) ) {
$link = home_url('/').'register/';
}
return $link;
});
add_filter('etheme_mini_account_content', function($value) {
if ( get_query_var( 'et_is-loggedin', false) ) {
return false;
}
return $value;
});
We can only give an example or hint. Such code can be added in functions.php of the child theme.
Best Regards,
8Themes Team
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.