Thank you, but I have no idea where can be the desired position, I’m not a coder. Can you please show me the exact place? Thanks! Here is my header php:
<body class="<?php hybrid_body_class()?>">
<?php do_action( 'mantel_body_open' ); ?>
<div id="page" class="site">
<?php do_action( 'mantel_header_before' ); ?>
<header id="masthead" class="site-header" role="banner">
<?php do_action( 'mantel_header_open' ); ?>
<div class="blocks">
<div class="header">
<div class="site-branding">
<?php mantel_site_title(); ?>
</div><!-- .site-branding -->
<nav class="top-link" role="navigation">
<ul>
<li class="search-wrap">
<span class="open-s">open s</span>
<?php
if ( is_plugin_active( 'yith-woocommerce-ajax-search/init.php' ) && class_exists('woocommerce') )
do_shortcode( '[yith_woocommerce_ajax_search]' );
elseif( is_plugin_active( 'woocommerce/woocommerce.php' ) )
get_search_form();
?>
<?php if ( ! is_user_logged_in() ) { global $woocommerce; ?>
<li><a>" title="<?php esc_attr_e( 'Login', 'mantel' ); ?>"><?php _e( 'Login', 'mantel' ); ?></a></li>
<?php } else {
$myaccount_page_id = get_option( 'woocommerce_myaccount_page_id' );
if ( $myaccount_page_id ) {
$logout_url = wp_logout_url( get_permalink( $myaccount_page_id ) );
if ( get_option( 'woocommerce_force_ssl_checkout' ) == 'yes' )
$logout_url = str_replace( 'http:', 'https:', $logout_url );
}
?>
<li><a>"><?php _e( 'Logout', 'mantel' ); ?></a></li>
<?php if ( function_exists( 'mantel_my_account_url' ) ) mantel_my_account_url(); ?>
<?php } ?>
<?php if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) : global $woocommerce; ?>
<li id="open-cart">
<a href="#"><?php _e( 'My Cart', 'mantel' ); ?>
<span class="mycart">
<?php echo $woocommerce->cart->cart_contents_count; ?>
</span>
</a>
<?php get_template_part( 'dropdown', 'cart' )?>
<?php endif; ?>
</ul>
</nav><!-- .top-link -->
</div><!-- .header -->
<?php //do_action( 'mantel_header' ); ?>
</div><!-- .blocks -->
<?php do_action( 'mantel_header_close' ); ?>
</header><!-- #masthead .site-header -->
<?php do_action( 'mantel_header_after' ); ?>
<?php if ( ! is_page_template( 'page-templates/landing.php' ) ) get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?>
<?php do_action( 'mantel_main_before' ); ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]