• Resolved Anthyx

    (@anthyx)


    Hi,

    In my twenty eleven child theme I’ve placed a couple of buttons just under the menu bar, on the right.

    In style.css I’ve added this code:

    .lang-switch {float:right;}
    .lang-item {display: inline; list-style: none;}

    At the very bottom of the header php I’ve inserted this code:

    <ul class=”lang-switch”><?php
    pll_the_languages(array(‘show_flags’=>1,’show_names’=>0));
    ?>

    Everything works fine in static pages.

    In “posts” page (both the “main”, the one with the posts in chronological order and the single post), the title is at the same distance from the menu bar as the language buttons, the buttons appear as usual but .. don’t work at all!

    Please help!!!

    Many thanks in advance!

    A.

    http://wordpress.org/extend/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Could you provide a link?

    Thread Starter Anthyx

    (@anthyx)

    Thanks Chouby for your help,

    I have solved the problem just “moving up” a bit the code:

    <ul class=”lang-switch”><?php
    pll_the_languages(array(‘show_flags’=>1,’show_names’=>0));
    ?>

    inside my header.php file.

    Now the flag buttons work properly into the posts too.

    Many thanks anyway!

    A.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Posts title disables translate buttons.’ is closed to new replies.