New Landing How can we help? Themeforest Theme Support Dante Replace Mobile Menu icon

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #199548
    CDMedia
    Member
    Post count: 20

    Hi there,

    My client would like me to replace the mobile menu icon with either ‘Menu’ text / button or an image.

    How can I do this?

    Thanks for your great theme

    #199556
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste given below php code at functions.php of child theme.

    function sf_logo($logo_class) {
    
    			//VARIABLES
    			global $woocommerce;
    			$options = get_option('sf_dante_options');
    			$show_cart = $options['show_cart'];
    			$logo = $retina_logo = $light_logo = $dark_logo = "";
    			if (isset($options['logo_upload'])) {
    			$logo = $options['logo_upload'];
    			}
    			if (isset($options['retina_logo_upload'])) {
    			$retina_logo = $options['retina_logo_upload'];
    			}
    
    			// Light Logo
    			if (isset($options['light_logo_upload'])) {
    			$light_logo = $options['light_logo_upload'];
    			}
    			if ( $light_logo != "" ) {
    			    $logo_class .= " has-light-logo";
    			}
    
    			// Dark Logo
    			if (isset($options['dark_logo_upload'])) {
    				$dark_logo = $options['dark_logo_upload'];
    			}
    			if ( $dark_logo != "" ) {
    			    $logo_class .= " has-dark-logo";
    			}
    
    			if ($retina_logo == "") {
    			$retina_logo = $logo;
    			}
    
    			$logo_output = "";
    			$logo_alt = get_bloginfo( 'name' );
    			$logo_link_url = home_url();
    
    			// LOGO OUTPUT
    			$logo_output .= '<div id="logo" class="'.$logo_class.' clearfix">'. "\n";
    			$logo_output .= '<a href="'.$logo_link_url.'">'. "\n";
    			if ($logo != "") {
    			$logo_output .= '<img class="standard" src="'.$logo.'" alt="'.$logo_alt.'" />'. "\n";
    			} else {
    			$logo_output .= '<h1 class="standard">'.$logo_alt.'</h1>'. "\n";
    			}
    			if ($retina_logo != "") {
    			$logo_output .= '<img class="retina" src="'.$retina_logo.'" alt="'.$logo_alt.'" />'. "\n";
    			} else {
    			$logo_output .= '<h1 class="retina">'.$logo_alt.'</h1>'. "\n";
    			}
    			if ($light_logo != "") {
    			$logo_output .= '<img class="light-logo" src="'.$light_logo.'" alt="'.$logo_alt.'" />'. "\n";
    			}
    			if ($dark_logo != "") {
    			$logo_output .= '<img class="dark-logo" src="'.$dark_logo.'" alt="'.$logo_alt.'" />'. "\n";
    			}
    			$logo_output .= '</a>'. "\n";
    			$logo_output .= '<a href="#" class="visible-sm visible-xs mobile-menu-show"><i class="ss-rows"></i></a>'. "\n";
    			if ($show_cart && $woocommerce != "") {
    			$logo_output .= '<a href="'.$woocommerce->cart->get_cart_url().'" class="visible-sm visible-xs mobile-cart-link"><i class="ss-cart"></i></a>'. "\n";
    			}
    			$logo_output .= '</div>'. "\n";
    
    			// LOGO RETURN
    			return $logo_output;
    		}

    Now find this part of code from this code and replace with your text/image:-
    <i class="ss-cart"></i>

    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register