Created
May 16, 2017 10:23
-
-
Save anastransvelo/e812fa4aa1984949641b5ad4806a53e0 to your computer and use it in GitHub Desktop.
Electro - Add "My Account" to header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'electro_header_v1', 'electro_navbar_myaccount', 40 ); | |
add_action( 'electro_header_v3', 'electro_navbar_myaccount', 40 ); | |
function electro_navbar_myaccount() { | |
?> | |
<ul class="navbar-compare nav navbar-nav pull-right flip"> | |
<li class="nav-item"> | |
<a href="<?php echo esc_attr( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ); ?>" class="nav-link"><i class="ec ec-user"></i>My Account</a> | |
</li> | |
</ul> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment