Announcement

Collapse
No announcement yet.

Code placement in utility bar above header

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Code placement in utility bar above header

    I'm trying to place a link in the utility bar to our "My Account" page using the below code: https://docs.woocommerce.com/documen...template-file/

    <?php if ( is_user_logged_in() ) { ?> <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('My Account','woothemes'); ?></a> <?php } else { ?> <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Login / Register','woothemes'); ?></a> <?php } ?>

    I'd like to place it in the right side of the utility bar as outlined here - http://cobaltapps.club/forum/main-ca...top-bar-in-dwb

    Here is the draft website - I'm trying to place the link next to the shopping cart. http://kp-khalsa.com

    I tried using a hook box to do it, but wasn't able to figure it out. What is the best way to accomplish this?
Working...
X