• Resolved glauciarezende

    (@glauciarezende)


    Hello!

    I liked the translatePress plugin, it is very practical and compatible with the accordion system.

    But it is not working along with my “hamburger” style menu … mobile. When the plugin is active the mobile menu stops working … it does not open for English version. My site is default portuguese brazil (pt_BR) and I need it in the English version … a translation professional did the work and now I need the plugin to put it on the site.

    The site is this:

    http://psicologiaecorpo.com.br

    Please help me…. =}

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @glauciarezende,

    Please open a ticket on our website so we can investigate this further.

    Regards.

    Thread Starter glauciarezende

    (@glauciarezende)

    Obrigada!
    TKS!

    Plugin Author Georgian Cocora

    (@raster02)

    Hello,

    Issue was being caused by the CSS of the clients menu.

    Regards.

    Thread Starter glauciarezende

    (@glauciarezende)

    Deixo o meu agradecimento ao Georgian e a outros da equipe TranslatePress!

    Abaixo o problema do meu CSS que estava impedindo o menu estilo “hamburger” (mobile menu) de funcionar:

    “TranslatePress adds an extra HTML tag after the “hamburger” icon ( #toggle ) on translated pages. And this breaks the CSS rule found in your stylesheet that opens the menu, because the .barras and .nav classes don’t follow immediately the #toggle:checked

    To fix it, please replace the + with ~. This rule will be more flexible and will allow the extra HTML tag that TranslatePress adds between your tags.
    If you want, you can read more about the difference between the + and ~ CSS selectors here. ”

    Replace this:

    #toggle:checked + .barras .top-bun {
    transform: rotate(-45deg);
    margin-top: 25px;
    }

    #toggle:checked + .barras .bottom-bun {
    opacity: 0;
    transform: rotate(45deg);
    }
    #toggle:checked + .barras .meat {
    transform: rotate(45deg);
    margin-top: -3px;
    }
    #toggle:checked + .barras + .nav {
    top: 0;
    transform: scale(1);
    }

    with this:

    #toggle:checked ~ .barras .top-bun {
    transform: rotate(-45deg);
    margin-top: 25px;
    }

    #toggle:checked ~ .barras .bottom-bun {
    opacity: 0;
    transform: rotate(45deg);
    }
    #toggle:checked ~ .barras .meat {
    transform: rotate(45deg);
    margin-top: -3px;
    }
    #toggle:checked ~ .barras ~ .nav {
    top: 0;
    transform: scale(1);
    }

    É isso… agradeço mais uma vez ao suporte…. abraços do Brasil.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug TranslatePress – Menu Mobile’ is closed to new replies.