Okay
  Public Ticket #403522
language selector
Closed

Comments

  • Andoni started the conversation

    Hello again.

    I've managed to insert a language selector in the home page but I can't find the way to center it in the page.

    I have very very little idea of PHP or HTML but I tried giving a name to the function with <div id="functionname"> and putting #functionname {margin=auto} in the CSS options in the themes option panel....

    Nothing works...

    The image shows what I want to do.

    This are my site URL and WP user and password

    www.signospublicidad.com

    User: moon

    Password: atorrasagasti34

    Thx


  •  1,823
    Support replied

    Hi


    #lang_sel_list li {
    float: center;
    }


    #lang_sel_list {
    width: 50%;
    margin: 0 auto;
    }

    theme options Styling Options -> Custom CSS
    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Andoni replied

    I have included

    #lang_sel_list li {

    float: center;

    }

    #lang_sel_list {

    width: 50%;

    margin: 0 auto;

    }

    in the custom CSS as you said and also this line in the home_section_pattern.php (sections/home_section_pattern.php)

    <div id="lang_sel_list"><?php do_action('icl_language_selector'); ?></div>

    but it doesn't work. The selector doesn't move.


  •  1,823
    Support replied

    You didn't enter the correct code in the custom CSS - probably you copied and pasted without verifying it.

    I corrected for you

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Andoni replied

    Thank you very much... it's almost done, but it isn't centered yet.

    Could you please take a look and fix it for me. I'm not able to do it myself.

    thx

  •  1,823
    Support replied

    Hi,

    We added a new css for your selector lists in CUSTOM CSS. Regards

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Andoni replied

    Fixed... thx a lot.