-
AuthorPosts
-
January 29, 2018 at 8:03 pm #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, 9 months ago by denisj77.
January 29, 2018 at 9:01 pm #904422Hey 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 ShannonJanuary 29, 2018 at 9:42 pm #904439Ok 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, 9 months ago by denisj77.
January 29, 2018 at 10:18 pm #904486Hi,
Did you need help with the css above?
Best regards,
Jordan ShannonJanuary 29, 2018 at 11:21 pm #904524Yes, 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,
ThanksJanuary 29, 2018 at 11:31 pm #904528Hi,
Can you comment out the css you currently have for the weather widget?
Best regards,
Jordan ShannonJanuary 30, 2018 at 12:35 am #904545For 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
January 31, 2018 at 4:37 am #905321Hi,
Please continue here: https://kriesi.at/support/topic/top-menu-secondary-menu/
Best regards,
Ismael -
AuthorPosts
- The topic ‘Polylang Position in Top Bar’ is closed to new replies.