New Front EN › Support Forums › Kanso Theme Support › WPML – one page – menu
Tagged: navigation, wpml
- This topic has 3 replies, 2 voices, and was last updated 10 years, 11 months ago by satori.
-
AuthorPosts
-
December 18, 2013 at 11:25 am #2156quentroParticipant
Hi,
I tried to insert the WPML-dropdown in the navigation of the One-Page-Version instead of the social icons.
What I did:
I deleted the code (header.php – line 142 -164)
<?php
$kanso_sd_header_social = '';
if ( function_exists ( 'kanso_sd_get_option_tree' ) ) {
$kanso_sd_headersocial = array ( "facebook", "twitter", "google-plus", "linkedin", "pinterest", "flickr", "rss", "youtube" );
foreach ( $kanso_sd_headersocial as $kanso_sd_headersocialicon ) {
$kanso_sd_headersocialcheck = "header_".str_replace("-","_",$kanso_sd_headersocialicon);
if ( kanso_sd_get_option_tree ( 'header_social_target' ) == "Same tab/window" ) { $kanso_sd_target = "_self"; } else { $kanso_sd_target = "_blank"; }
if ( is_string ( kanso_sd_get_option_tree ( $kanso_sd_headersocialcheck ) ) ) {
$kanso_sd_header_social .= '‘;
}
}
if ( is_string (kanso_sd_get_option_tree(‘header_custom_social_1_icon’))) {
$kanso_sd_header_social .= ‘‘;
}
if ( is_string (kanso_sd_get_option_tree(‘header_custom_social_2_icon’))) {
$kanso_sd_header_social .= ‘‘;
}
}
if ( $kanso_sd_header_social != ” ) {
echo ”.$kanso_sd_header_social.”;
}?>
then insert the following Code from the WPML plugin
php do_action(‘icl_language_selector’);
Looks good from far, but far from good.
Regards and thanks for any advice.
December 18, 2013 at 1:57 pm #2166satoriKeymasterHey Quentro,
I can still see the social icons in the header of your website – have you removed the WPML code? Could I have a look at what it looks like when it’s there? Thanks!
Sincerely,
Andrii / Satori StudioDecember 19, 2013 at 11:51 am #2181quentroParticipantThis is what it looks like without the header-functions.php in the child directory:
http://cl.ly/image/0o2Y1T0x3s2tthis is what it looks like with the header-functions.php in the child directory:
http://cl.ly/image/1G411B2F0z2Uand this is how it looks like without the plugin (the font):
http://cl.ly/image/2r0E2f1M0e3HCheers
December 20, 2013 at 11:31 am #2187satoriKeymasterHey Quentro,
the WPML plugin-rendered drop-down element that you are trying to introduce into the theme’s template file seems to be in order per se; the only problem as far as I can see from the screenshots is its positioning; this, in turn, is not a PHP or HTML issue, but a CSS styling aspect: as in most other WordPress themes (and most of modern websites in general, for that matter), the mutual positioning of elements is regulated by CSS rules, not so much HTML. So all we need to do in this particular case is to adjust the CSS for the new element, which is why I’ve asked for a live code – it is hard to give a precise code by only looking at the images. Could you please put the box back in, I will look at the code and tell you the required CSS code (however, please note that such theme amendment is considered customization and is not already covered by the ThemeForest standard support guarantee – this is just to note that I’m doing it based on wish to help, and I cannot guarantee that the changes will be 100% successful from the first time).
Sincerely,
Andrii / Satori Studio -
AuthorPosts
- You must be logged in to reply to this topic.