Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #591840

    Hi there,
    I know that this topic has been opened before and I have found some answers here and there but since there are posts that go back to 2013, I would like to know if there is a final and official way to move the WPML flags to the social header icons position. Maybe add this feature in a feature release too? That would be great to consider.
    The default position (inline with the main menu items) isn’t to my liking as well as the top header bar (I don’t want to use any).
    Also please advise if we can show the flags in the mobile menu since the social icons disappear when going to mobile view.
    Thanks in advance.

    #593078

    Since the support team seems a bit swamped with so many requests, I did some research and I achieved (nearly) what I want.
    I activated the header secondary menu and made the “built-in to Enfold” language flags appear. Then I used the following CSS I found in another post with some tweaks to my header:

    @media only screen and (min-width: 768px) {
    .sub_menu {
        position: absolute !important;
        top: 85px !important;
        right: 120px !important;
    }
    }
    
    .header-scrolled .avia_wpml_language_switch.avia_wpml_language_switch_extra {
    top: -32px;
    }
    
    #top ul.avia_wpml_language_switch li {
        margin: 0px 10px 0px 5px;
    }

    I don’t know if I made any mistakes or if I could make the code better but it seems to work.
    What I would finally want to achieve is to remove the black strip of the secondary menu but keep it for the language flags when it goes into mobile view.
    Desktop

    Mobile

    Also I noticed that the social menu icons disappear when the layout jumps into mobile menu view.
    Social icons disappearance

    I am attaching some screenshots to indicate the above. I hope they help and I hope you will help.

    Thanks

    #595066

    Hi!

    Sorry for the late reply!

    Please add following code to Quick CSS as well

    @media only screen and (min-width: 768px) {
    #header_meta {
        margin-top: -30px;
    }
    html_header_top.html_header_topbar_active.html_header_sticky.html_large.html_bottom_nav_header #top #main {
        padding-top: 168px;
    }}

    Best regards,
    Yigit

    #596652

    Thank you for the reply Yigit.
    The code you provided has indeed removed the top socket but only in desktop viewport. When going into 767px or less a black bar appears beneath the header and above the slider. The same and even bigger bar shows up if you resize the site in less pixels. See attached screenshots.
    Any ideas?

    View 1

    View 2

    #596959

    Hi!

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 990px) and (min-width: 768px) {
    .html_header_top.html_header_topbar_active.html_header_sticky.html_large.html_bottom_nav_header #top #main { padding-top: 147px !important; }}

    If you would like to share CSS or any other code, please use pastebin.com and post the links here :)

    Regards,
    Yigit

    #597021

    Hey Yigit,
    Unfortunately the code didn’t work so I disabled it. I am creating credentials to log in and have a look.

    Regards,
    Manou

    #598688

    Hi!

    I added the code to top of Quick CSS field and it does work fine on my end. Can you please flush browser cache, refresh your page a few times and review your website?

    Regards,
    Yigit

    #599381

    Hi Yigit,
    I did all that but the black bar of the secondary header menu is still there. Maybe you cannot see it because it is black.
    I’ll change it to orange to see what I mean.
    Thank you

    #600657

    Hi!

    Add this in the Quick CSS field:

    #header_meta, #header_meta .container {
        min-height: 1px;
        height: 1px;
    }

    Adjust the top padding of the main container:

    .html_header_top.html_header_topbar_active.html_header_sticky.html_large.html_bottom_nav_header #top #main {
        padding-top: 168px;
    }

    Best regards,
    Ismael

    #602856

    Thank you Ismael,
    Your code worked fine and I had to adjust some things using the below CSS

    To fix the header padding when in tablet sized viewport:

    @media only screen and (max-width: 990px) and (min-width: 768px) {
    .html_header_top.html_header_topbar_active.html_header_sticky.html_large.html_bottom_nav_header #top #main { padding-top: 118px !important; }}

    To “call” the black bar for the language flags when in mobile view:

    @media only screen and (max-width: 768px) {
    #header_meta, #header_meta .container {
        min-height: 30px;
        height: 30px; }}

    To adjust the padding of the flags in header scrolled:

    .header-scrolled .avia_wpml_language_switch.avia_wpml_language_switch_extra {
    top: -62px !important; }

    Hope this helps someone out there.
    Thanks!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘WPML flags at header social icons position’ is closed to new replies.