Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Joyn › WPML : Menu Position
New Landing › How can we help? › Themeforest Theme Support › Joyn › WPML : Menu Position
- This topic has 41 replies, 4 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Joyn
-
May 5, 2015 at 5:57 pm #172098
thanks, and for css of submenu please ?
May 5, 2015 at 6:00 pm #172102What do you want to do in the submenu?
-Rui
May 5, 2015 at 10:00 pm #172158I would change background, color, style hover… All css
Attachments:
You must be logged in to view attached files.May 7, 2015 at 2:14 pm #172850Hi,
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
May 7, 2015 at 2:51 pm #172877Thanks Rui, it-s good for css 😉
Is it possible to change “Français” by ” | FR |” (and “English” by “| EN |”) ?
May 9, 2015 at 11:17 pm #173448You’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
May 10, 2015 at 12:29 am #173453ok Ed, in page sf-functions.php
but, what code needs to be changed please? I’m not a developerMay 10, 2015 at 9:43 pm #173529Hi,
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
May 10, 2015 at 11:20 pm #173551Yes, 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.
May 10, 2015 at 11:40 pm #173553This reply has been marked as private.May 11, 2015 at 12:52 am #173570Yes Rui, it’s good, thank you very much for having found a solution !!
May 11, 2015 at 12:56 am #173572No problem. Glad that the solution works for you.
-Rui -
Posted in: Joyn
You must be logged in and have valid license to reply to this topic.