-
Author
-
October 6, 2014 at 15:27 #30807alberhdParticipant
How can i add the WPML language selector at the right top please?
WPML give this code to do it,i attach a capture with the example<?php do_action('icl_language_selector'); ?>
Thank you!
Attachments:
You must be logged in to view attached files.October 6, 2014 at 15:47 #30819CatalinModeratorcopy header.php to your child theme and after this line:
COPY CODE<li class="header-register-button"><a href="#"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a></li>
add
COPY CODE<li><?php do_action('icl_language_selector'); ></li>
you may need some css customization…
let me know if this works…
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 6, 2014 at 15:55 #30821alberhdParticipantI copy the header.php at functions.php in child theme,but i have this problem
Fatal error: Call to undefined function sq_option() in /homepages/43/d524894821/htdocs/wp-content/themes/sweetdate-child/functions.php on line 265
October 6, 2014 at 16:00 #30824alberhdParticipantand something is wrong in the code,dreamwaver found problems with <?php
<li><?php do_action('icl_language_selector'); ></li>
Thank you for your help
October 6, 2014 at 16:06 #30826alberhdParticipantthis is the header.php code
COPY CODE<li class="header-login-button"><a href="#" data-reveal-id="login_panel" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li> <?php if(get_option('users_can_register')) { ?> <li class="header-register-button"><a href="#" data-reveal-id="register_panel" class="tiny button radius"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a></li> <?php } ?> <?php endif; ?>
The wpml code should be here?
COPY CODE<li class="header-login-button"><a href="#" data-reveal-id="login_panel" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li> <?php if(get_option('users_can_register')) { ?> <li class="header-register-button"><a href="#" data-reveal-id="register_panel" class="tiny button radius"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a> <strong><li><?php do_action('icl_language_selector'); ></li></strong> </li> <?php } ?> <?php endif; ?>
October 6, 2014 at 16:56 #30829CatalinModeratortest this and let me knwo if it works… the code looks right…
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 6, 2014 at 17:15 #30833alberhdParticipantI attach the capture with the problem
Attachments:
You must be logged in to view attached files.October 6, 2014 at 17:16 #30835CatalinModeratorCOPY CODE<?php do_action('icl_language_selector'); ?>
u missed the closing question mark for php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 6, 2014 at 17:21 #30839alberhdParticipantok,now no errors,but does not work
Attachments:
You must be logged in to view attached files.October 7, 2014 at 12:33 #30915CatalinModeratorcredentials not working anymore… I need to take a look and see what settings you have.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 10, 2014 at 02:56 #31229alberhdParticipantHello,finally i add the selector to the header,but now,i have two problems:
1. The name of the languages are not displayed.
2. The selector autoclose,just i can select the second language,because when i try to down more with the mouse the selector autoclose.Thank you for your help Catalin!
Attachments:
You must be logged in to view attached files.October 10, 2014 at 13:15 #31274CatalinModeratornot able to login to your site anymore, credentials not working…
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.