This topic has 3 replies, 3 voices, and was last updated 7 months ago ago by Andrew Mitchell
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
Dear Jordan,
We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.
Click here to rate now: https://themeforest.net/downloads
Thank you sincerely for your ongoing support!
Best Regards,
The 8Theme Team
Tagged: assistance, best selling themes, help, my account, persuasive, support, woocommerce
The issue related to '‘Need assistance for the my account widget’' has been successfully resolved, and the topic is now closed for further responses