Add woocommerce account link to book club header
This commit is contained in:
@ -40,9 +40,11 @@ $checkout_url = add_query_arg(
|
||||
</a>
|
||||
|
||||
<nav class="action-buttons">
|
||||
<a href="#">
|
||||
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>">
|
||||
</a>
|
||||
<?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 endif; ?>
|
||||
<a class="join-us-cta btn btn--solid" href="<?= esc_url($checkout_url); ?>">Junta-te ao clube</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user