Skip to content

Instantly share code, notes, and snippets.

@anastransvelo
Created May 16, 2017 10:23
Show Gist options
  • Save anastransvelo/e812fa4aa1984949641b5ad4806a53e0 to your computer and use it in GitHub Desktop.
Save anastransvelo/e812fa4aa1984949641b5ad4806a53e0 to your computer and use it in GitHub Desktop.
Electro - Add "My Account" to header
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