Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #904395

    Hi, I Inserted Polylang in the Top Bar.
    In a Desktop is displayed on the right with Black Color, but on mobile devices in the center with Grey Color, how can I always have it on the right and in Black?
    Then, I Inserted a Shortcode of a Weather Plugin, and this Work with this CSS: ( Is It Right? )
    #top
    #header_meta .weather {
    top: -20px;
    bottom: 0px;
    left: -60px;
    right: 0px;
    position: relative;
    }

    .header_color .weather { color: black; }

    @media only screen and (max-width: 767px) {
    .responsive.html_mobile_menu_tablet #top #header #header_meta .weather {
    display: block !important;
    text-align: right !important;
    }}
    https://residenzeparadiso.com/contatti/
    Thanks

    • This topic was modified 6 years, 10 months ago by denisj77.
    #904422

    Hey denisj77,

    Thanks for submitting your question. Add this to quick css to correct polyang:

    @media only screen and (max-width: 767px)  {
    .responsive #header_meta .sub_menu ul{
    text-align:right!important;
    color:#000!important;
    }}

    And then add this to adjust the weather widget on mobile:

    .simple-weather__day.simple-weather__day--current{
    padding-top:15px!important;
    }

    Best regards,
    Jordan Shannon

    #904439

    Ok for The Polylang, But Now The Weather Position is wrong… I Want It On the Left Near Polylang…
    Here The CSS Inserted:

    @media only screen and (max-width: 767px) {
    .responsive #header_meta .sub_menu ul{
    text-align:right!important;
    color:#000!important;
    }}

    .simple-weather__day.simple-weather__day–current{
    padding-top:15px!important;
    }

    .header_color .weather { color: black; }

    Thanks

    • This reply was modified 6 years, 10 months ago by denisj77.
    #904486

    Hi,

    Did you need help with the css above?

    Best regards,
    Jordan Shannon

    #904524

    Yes, with Your second css code : ( .simple-weather__day.simple-weather__day–current{
    padding-top:15px!important;
    } )The Weather Shortcode Have a Bad Position, Can You Help Me?
    Your First Css Code For Polylang Work Perfect.

    You Can See The Results on my Link Above,
    Thanks

    #904528

    Hi,

    Can you comment out the css you currently have for the weather widget?

    Best regards,
    Jordan Shannon

    #904545

    For Have The weather Shortcode in The Top bar I Have Iserted This Code in functions.php of My enfold Child Theme:

    function add_custom_script_weather(){
    echo “<div class=’weather’>”.do_shortcode(‘[simple-weather latitude=41.050573 longitude=8.939561 station=”darksky” show_current=”yes” units=”metric” days=”0″ date=” “]’).”</div>”;
    }
    add_action(‘avia_meta_header’, ‘add_custom_script_weather’, 10);

    And then I Have tried various Quick CSS Code to Set The Right Position, But They don’t Work :

    #top
    #header_meta .weather {
    top: -20px;
    bottom: 0px;
    left: -60px;
    right: 0px;
    position: relative;
    }

    @media only screen and (max-width: 767px) {
    .responsive.html_mobile_menu_tablet #top #header #header_meta .weather {
    display: block !important;
    text-align: right !important;
    }}

    .simple-weather__day.simple-weather__day–current{
    padding-top:15px!important;
    }

    .header_color .weather { color: black; }

    Thanks

    #905321

    Hi,

    Please continue here: https://kriesi.at/support/topic/top-menu-secondary-menu/

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Polylang Position in Top Bar’ is closed to new replies.