My way to add a second button next to the Costum Button.
in eco-parts / main-menu.php
<?php
if( ecohost_opt('eco_display_headerCustomBtn') ){
echo '<div class="login-btn hidden-lg hidden-md">';
echo '<a href="'.esc_url( ecohost_opt('eco_header_customBtnUrl') ).'" class="btn">'.esc_html( ecohost_opt('eco_header_customBtn') ).'</a>';
<strong>echo '<a href="adress" class="btn">Button Name</a>';</strong>
echo '</div>';
}
?>
// main menu custom button
if( ecohost_opt('eco_display_headerCustomBtn') ){
echo '<ul class="secondary-menu-links nav navbar-nav navbar-right hidden-xs hidden-sm">';
echo '<li><a href="'.esc_url( ecohost_opt('eco_header_customBtnUrl') ).'" class="btn">'.esc_html( ecohost_opt('eco_header_customBtn') ).'</a></li>';
echo '<li><a href="adress" class="btn">Button Name</a></li>';
echo '</ul>';
}
How do I add it like in the admin panel.
-
This topic was modified 4 years, 3 months ago by Merhamet yok.
-
This topic was modified 4 years, 3 months ago by Merhamet yok.
-
This topic was modified 4 years, 3 months ago by Merhamet yok.
-
This topic was modified 4 years, 3 months ago by Merhamet yok.