Hi @istoka ,
Thanks for letting us know this small improvement. We would surely look towards it and would add a patch for it very soon.
But in the meantime, you can use this CSS that would surely help you in mobile landscape mode:-
@media only screen and (max-width: 820px) and (min-width: 600px) {
.main-header-bar-navigation.toggle-on{
background-color:white;
}
.ast-theme-transparent-header .main-header-menu a{
color:black;
}
.ast-theme-transparent-header .main-header-menu .current_page_item a {
color:#fb2056;
}
}
I am sure this will help.
Regards,
Deepak
Hi! It worked, but it needs some more tweaks:
1. There’s an additional top padding that needs to be removed:
.main-header-bar .main-header-bar-navigation.toggle-on {
padding-top:0;
}
2. When you click on a link in the menu, the link text turns white. Any hints how to fix this? 🙂
Thanks!
Hi @istoka ,
We have created a JS code that will fix your issue without any further css. You can simply remove the previous css and simply add this JS in the child theme’s function.pho file:-
function disable_transparent_header_mobile() {
?>
<script type="text/javascript" >
jQuery(window).on('resize', function(){
if ( '812' >= jQuery( window ).width() ) {
if ( jQuery( 'body' ).hasClass( 'ast-theme-transparent-header' ) ) {
jQuery( 'body' ).removeClass( 'ast-theme-transparent-header' );
}
} else {
if ( !jQuery( 'body' ).hasClass( 'ast-theme-transparent-header' ) ) {
jQuery( 'body' ).addClass( 'ast-theme-transparent-header' );
}
}
});
jQuery( document ).ready(function() {
if ( '812' >= jQuery( window ).width() ) {
if ( jQuery( 'body' ).hasClass( 'ast-theme-transparent-header' ) ) {
jQuery( 'body' ).removeClass( 'ast-theme-transparent-header' );
}
} else {
if ( !jQuery( 'body' ).hasClass( 'ast-theme-transparent-header' ) ) {
jQuery( 'body' ).addClass( 'ast-theme-transparent-header' );
}
}
});
</script>
<?php
}
add_action( 'wp_footer', 'disable_transparent_header_mobile' );
Let me know once you add the above JS code in your child theme’s function.php file.
Regards,
Deepak
Working perfectly fine, thanks! Sorry for the delay!