New Landing How can we help? Themeforest Theme Support Neighborhood Doubts WPML – Template

Viewing 10 posts - 1 through 10 (of 10 total)
  • #207191
    Mairena
    Member
    Post count: 66

    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.
    #207432
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    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=0

    They 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

    #207451
    Mairena
    Member
    Post count: 66

    Hi 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.
    #207508
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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

    #207630
    Mairena
    Member
    Post count: 66

    Hi Mohammad,

    Is a great idea. I did it but appear over top bar.

    Regards!

    Attachments:
    You must be logged in to view attached files.
    #207650
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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
    Mohammad

    #207684
    Mairena
    Member
    Post count: 66

    Hi 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'>

    #207813
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please add !important rule to your font css class declaration. Just like:-

    h1 {
    font-family: 'Pacifico', cursive !important;
    }

    Thanks
    Mohammad

    #208649
    Mairena
    Member
    Post count: 66

    Hi,

    The problem is solved.

    Thanks for everything
    Regards!

    #208729
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

Viewing 10 posts - 1 through 10 (of 10 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