Add woocommerce account link to book club header

This commit is contained in:
2025-04-10 14:14:46 +05:00
parent 1ed35e0813
commit 44a377ce8c

View File

@ -40,9 +40,11 @@ $checkout_url = add_query_arg(
</a> </a>
<nav class="action-buttons"> <nav class="action-buttons">
<a href="#"> <?php if (is_user_logged_in()): ?>
<img src="<?= get_theme_file_uri('/assets/images/profile-button.svg'); ?>"> <a href="<?= esc_url(wc_get_page_permalink('myaccount')); ?>">
</a> <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> <a class="join-us-cta btn btn--solid" href="<?= esc_url($checkout_url); ?>">Junta-te ao clube</a>
</nav> </nav>
</header> </header>