use myaccount page for registration and login
This commit is contained in:
@ -65,15 +65,9 @@ $checkout_url = add_query_arg(
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav class="action-buttons">
|
<nav class="action-buttons">
|
||||||
<?php if (is_user_logged_in()): ?>
|
<a href="<?= esc_url(wc_get_page_permalink('myaccount')); ?>">
|
||||||
<a href="<?= esc_url(wc_get_page_permalink('myaccount')); ?>">
|
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>" alt="My Account">
|
||||||
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>" alt="My Account">
|
</a>
|
||||||
</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 class="join-us-cta btn btn--solid" href="#join-club-cta">Junta-te ao clube</a>
|
<a class="join-us-cta btn btn--solid" href="#join-club-cta">Junta-te ao clube</a>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
Reference in New Issue
Block a user