Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Doubts WPML – Template
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Doubts WPML – Template
- This topic has 9 replies, 3 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
August 25, 2015 at 12:18 pm #207191
Hi,
I have some dubts about wpml and template.
1.- Currently I have put it manually two links for the idioms, I would like the switcher wpml <?php do_action(‘wpml_add_language_selector’); ?> in Top Bar right text config, is possible?
2.- I have problems with the fonts, in english (language main) the font was changed, but in spanish not. I attach some img. It’s compatible?
Regards
Attachments:
You must be logged in to view attached files.August 25, 2015 at 11:25 pm #207432Hi,
That’s done automatically, just turn the option on in the Header options.
https://www.dropbox.com/s/zjrka2qa23omi9r/Screenshot%202015-08-25%2023.19.12.png?dl=0They will appear on the links that you also must choose for the header.
Regarding the font, it seems that some things are loaded in https and others in http.
Are you using the HTTPS plugin?
In Settings-> General do you have the same site url and WordPress url?-Rui
August 26, 2015 at 1:06 am #207451Hi Rui ^^
I’m sorry, I didn’t explain well. I wish to put it in the top bar (I attached a img). Currently I have two links (manually) for the language, I would like the switcher wpml.
I searched in the header.php to put this code<?php do_action('wpml_add_language_selector'); ?>
but I don’t find the correct place.And I don’t use a plugin to SSL, I leave you a tutorial (in spanish) of the settings that I have, also I attach a img.
Regards!
Attachments:
You must be logged in to view attached files.August 26, 2015 at 8:20 am #207508Hi,
This should be possible, with some few lines of additional PHP code.
Please add the following into the “functions.php” of your theme:function sf_wpml_shortcode_func(){ do_action('icl_language_selector'); } add_shortcode( 'wpml_lang_selector', 'sf_wpml_shortcode_func' );
With that we then have defined a new short code. You should be able now to add a [wpml_lang_selector] into Admin ->Theme Option -> Header Options -> Right Top text box and to see then a language switcher.
Please let me know if this works for you.Mohammad
August 26, 2015 at 12:20 pm #207630Hi Mohammad,
Is a great idea. I did it but appear over top bar.
Regards!
Attachments:
You must be logged in to view attached files.August 26, 2015 at 12:33 pm #207650Hi,
Please use this css code:-#lang_sel_list{
float:right !important;
margin:5px 10px 1px 2px !important;
}Now go to Admin -> WPML -> Languges -> Make the display of lanuguage switcher according you.
Thanks
MohammadAugust 26, 2015 at 1:37 pm #207684Hi Mohammad,
Thanks for everything. Currently works well 🙂
On the other hand, I solved the problem with the fonts adding this code in the CSS and tracking code, but in the Fonts Options > Heading google fonts don’t works well. It’s a solution or is it better to looking why doesn’t work the Fonts Options?
*/Fonts*/ h1 { font-family: 'Pacifico', cursive; } h2 { font-family: 'Pacifico', cursive; } h3 { font-family: 'Pacifico', cursive; } h4 { font-family: 'Pacifico', cursive; } h5 { font-family: 'Pacifico', cursive; } h6 { font-family: 'Pacifico', cursive; }
<link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
August 26, 2015 at 4:57 pm #207813Hi,
Please add !important rule to your font css class declaration. Just like:-h1 { font-family: 'Pacifico', cursive !important; }
Thanks
MohammadAugust 29, 2015 at 11:43 pm #208649Hi,
The problem is solved.
Thanks for everything
Regards!August 30, 2015 at 6:14 pm #208729Hi,
You most welcome.
Thanks
Mohammad -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.