use myaccount page for registration and login

This commit is contained in:
2025-05-09 23:52:42 +05:00
parent 166a906c8c
commit 71dd01d418

View File

@ -65,15 +65,9 @@ $checkout_url = add_query_arg(
</a>
<nav class="action-buttons">
<?php if (is_user_logged_in()): ?>
<a href="<?= esc_url(wc_get_page_permalink('myaccount')); ?>">
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>" alt="My Account">
</a>
<?php elseif (!is_user_logged_in()): ?>
<a href="<?= esc_url(wp_registration_url()); ?>">
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>" alt="My Account">
</a>
<?php endif; ?>
<a href="<?= esc_url(wc_get_page_permalink('myaccount')); ?>">
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>" alt="My Account">
</a>
<a class="join-us-cta btn btn--solid" href="#join-club-cta">Junta-te ao clube</a>
</nav>
</header>