Buenas tenemos una comunidad gaming y me estoy comiendo la cabeza para poner un botón nuevo entre otros botones existentes.
la idea seria añadir un nuevo botón con icono entre lo que parece una mira de un fps y los bocadillos y que al darle click valla por ejemplo a totemwokers.es/test, he probado mil cosas sin resultado, aquí os pongo el código de la barra de navegación:
<!-- NAVBAR
================================================== -->
<div class="navbar-wrapper container">
<div class="logo col-lg-3 col-md-3">
<a class="brand" href="<?php echo esc_url(site_url()); ?>"> <img src="<?php echo esc_url(of_get_option('logo')); ?>" alt="logo" /> </a>
</div>
<?php if (of_get_option('login_menu')){ ?>
<?php
if ( is_user_logged_in() ) {
global $current_user;
global $user_level;
global $wpmu_version;
global $usermeta;
get_currentuserinfo();
if(of_get_option('clan_creation') == '0'){
if($usermeta['_checkbox_clan_user'][0] == "" or $usermeta['_checkbox_clan_user'][0] == NULL or $usermeta['_checkbox_clan_user'][0] == "no"){
$noclanclass = 'no-clan';
}
};
if(!isset($noclanclass))$noclanclass = '';
?>
<div class="user-wrap <?php echo esc_attr($noclanclass); ?>">
<div class="user-avatar"><a class="username" href="<?php echo get_edit_user_link();?>"><?php echo get_avatar( $current_user->ID, $size = '71' ); ?></a></div>
<div class="logged-info">
<?php $current_user = wp_get_current_user(); ?>
<a class="username" href="<?php echo esc_url(get_edit_user_link());?>"><?php echo esc_attr($current_user->nickname);?><br /><span><?php _e('Member since ','blackfyre'); echo date("M, Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?></span></a>
</div>
<?php if ( is_plugin_active( 'buddypress/bp-loader.php' ) && function_exists( 'bp_is_active' ) && bp_is_active( 'messages' )){ $link = bp_loggedin_user_domain() . bp_get_messages_slug() . '/inbox'; ?>
<a class="btns messages" data-original-title="<?php _e( 'View your messages', 'blackfyre' ); ?>" data-toggle="tooltip" href="<?php echo esc_url($link);?>">
<i class="fa fa-comments-o"></i><?php if(bp_get_total_unread_messages_count( bp_loggedin_user_id() ) > 0){ ?>
<i class="msg_ntf"><?php echo bp_get_total_unread_messages_count( bp_loggedin_user_id() ); ?></i>
<?php }?> </a> <?php } ?>
<?php if(of_get_option('clan_creation') == '1' or $usermeta['_checkbox_clan_user'][0] == "yes"){ ?>
<a class="btns cross" href="http://totemwokers.es/usuarios"('<?php echo get_current_user_id(); ?>');" data-original-title="<?php _e('Create a clan', 'blackfyre'); ?>" data-toggle="tooltip"><i class="fa fa-crosshairs"></i> </a>
<?php } ?>
<a class="btns settings" data-original-title="<?php _e( 'View your profile', 'blackfyre' ); ?>" data-toggle="tooltip" href="<?php echo esc_url(get_edit_user_link());?>"><i class="fa fa-cog"></i> </a>
<a class="logout btns" data-original-title="<?php _e( 'Log out', 'blackfyre' ); ?>" data-toggle="tooltip" href="<?php echo esc_url(wp_logout_url( esc_url( $currentlang ))); ?>"><i class="fa fa-times"></i> </a>
<?php if ($woocommerce) { if(is_woocommerce()){ ?>
<div class="cart-outer">
<div class="cart-menu-wrap">
<div class="cart-menu">
<a class="cart-contents" href="<?php echo esc_url($woocommerce->cart->get_cart_url()); ?>"><div class="cart-icon-wrap"><i class="icon-shopping-cart"></i> <div class="cart-wrap"><span><?php echo esc_attr($woocommerce->cart->cart_contents_count); ?> </span></div> </div></a>
</div>
</div>
<div class="cart-notification">
<span class="item-name"></span> <?php _e('was successfully added to your cart.', 'blackfyre'); ?>
</div>
<!-- If woocommerce -->
<?php if ($woocommerce) { if(is_woocommerce()){ ?>
<?php
// Check for WooCommerce 2.0 and display the cart widget
if ( version_compare( WOOCOMMERCE_VERSION, "2.0.0" ) >= 0 ) {
the_widget( 'WC_Widget_Cart', 'title= ' );
} else {
the_widget( 'WooCommerce_Widget_Cart', 'title= ' );
}
?>
<?php }} ?>
<!-- Endif woocommerce -->