New Landing How can we help? Themeforest Theme Support Joyn WPML : Menu Position

Viewing 12 posts - 31 through 42 (of 42 total)
  • Posted in: Joyn
  • #172098
    mengeco
    Member
    Post count: 558

    thanks, and for css of submenu please ?

    #172102
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    What do you want to do in the submenu?

    -Rui

    #172158
    mengeco
    Member
    Post count: 558

    I would change background, color, style hover… All css

    Attachments:
    You must be logged in to view attached files.
    #172850
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Try this one

    
    ul.header-languages.sub-menu {
      background-color: #FFF!important;
      color: #222!important;
    }
    
    /* Hover text color*/ 
    span.language.name:hover {
     color: #CCC!important;
    }
    

    -Rui

    #172877
    mengeco
    Member
    Post count: 558

    Thanks Rui, it-s good for css 😉

    Is it possible to change “Français” by ” | FR |” (and “English” by “| EN |”) ?

    #173448
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    You’d need to override the language output function:

        /* LANGUAGE FLAGS
        ================================================== */
        if ( ! function_exists( 'sf_language_flags' ) ) {
    	    function sf_language_flags() {
    
    	        $language_output = "";
    
    	        if ( function_exists( 'pll_the_languages' ) ) {
    	            $languages = pll_the_languages(array('raw' =>1 ));
    	            if ( !empty( $languages ) ) {
    	                foreach( $languages as $l ) {
    	                    $language_output .= '<li>';
    	                    if ( $l['flag'] ) {
    	                        if ( !$l['current_lang'] ) {
    	                        	$language_output .= '<a href="'.$l['url'].'"><img src="'.$l['flag'].'" height="12" alt="'.$l['slug'].'" width="18" /><span class="language name">'.$l['name'].'</span></a>'."\n";
    	                        } else {
    	                        	$language_output .= '<div class="current-language"><img src="'.$l['flag'].'" height="12" alt="'.$l['slug'].'" width="18" /><span class="language name">'.$l['name'].'</span></div>'."\n";
    	                        }
    	                    }
    	                    $language_output .= '</li>';
    	                 }
    	            }
    	        } else if ( function_exists( 'icl_get_languages' ) ) {
    	            $languages = icl_get_languages( 'skip_missing=0&orderby=code' );
    	            if ( ! empty( $languages ) ) {
    	                foreach ( $languages as $l ) {
    	                    $language_output .= '<li>';
    	                    if ( $l['country_flag_url'] ) {
    	                        if ( ! $l['active'] ) {
    	                            $language_output .= '<a href="' . $l['url'] . '"><img src="' . $l['country_flag_url'] . '" height="12" alt="' . $l['language_code'] . '" width="18" /><span class="language name">' . $l['translated_name'] . '</span></a>' . "\n";
    	                        } else {
    	                            $language_output .= '<div class="current-language"><img src="' . $l['country_flag_url'] . '" height="12" alt="' . $l['language_code'] . '" width="18" /><span class="language name">' . $l['translated_name'] . '</span></div>' . "\n";
    	                        }
    	                    }
    	                    $language_output .= '</li>';
    	                }
    	            }
    	        } else {
    	            //echo '<li><div>No languages set.</div></li>';
    	            $flags_url = get_template_directory_uri() . '/images/flags';
    	            $language_output .= '<li><a href="#">DEMO - EXAMPLE PURPOSES</a></li><li><a href="#"><span class="language name">German</span></a></li><li><div class="current-language"><span class="language name">English</span></div></li><li><a href="#"><span class="language name">Spanish</span></a></li><li><a href="#"><span class="language name">French</span></a></li>' . "\n";
    	        }
    
    	        return $language_output;
    	    }
        }

    – Ed

    #173453
    mengeco
    Member
    Post count: 558

    ok Ed, in page sf-functions.php
    but, what code needs to be changed please? I’m not a developer

    #173529
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    We try to help has much has we can, but this already went beyond the scope of our support.
    You will need to hire a freelancer to achieve you custom modifications.

    Hope you understand.

    -Rui

    #173551
    mengeco
    Member
    Post count: 558

    Yes, I understand, you helped me a lot on this problem and I thank you. But I thought he smplement enough to change a word in the code.

    If it is more complicated, I will give up this request.

    #173553
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
    This reply has been marked as private.
    #173570
    mengeco
    Member
    Post count: 558

    Yes Rui, it’s good, thank you very much for having found a solution !!

    #173572
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Glad that the solution works for you.
    -Rui

Viewing 12 posts - 31 through 42 (of 42 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