Fixes site header title on banner ellipsing.

This commit is contained in:
mateuswetah 2020-05-14 10:54:35 -03:00
parent 3e46b32a8c
commit 11e9d78171
4 changed files with 4 additions and 7 deletions

View File

@ -676,7 +676,6 @@ nav{
word-break: break-word;
@media only screen and (min-width: 769px){
max-height: 100px;
min-width: 450px;
padding: 0rem;
padding-left: 4.166667%;
@ -690,16 +689,14 @@ nav{
}
}
@media only screen and (max-width: 768px){
padding: 0.7rem;
padding: 0.85rem 0.7rem;
padding-top: 1.2rem;
padding-left: 4.166667%;
padding-right: 4.166667%;
padding-left: 4.166667vw;
padding-right: 4.166667vw;
max-height: 100px;
}
@media only screen and (max-width: 576px){
max-height: 50px;
//padding: 0 1.3rem 0 4.16666666667%;
padding: 1rem;
padding-top: 0.8rem;

View File

@ -209,7 +209,7 @@ function tainacan_customize_register( $wp_customize ) {
'description' => __( 'Toggle to hide the site title row that appears over the header banner', 'tainacan-interface' )
) );
$wp_customize->selective_refresh->add_partial( 'tainacan_hide_site_title_on_header_banner', array(
'selector' => '.page-header h1.text-truncate',
'selector' => '.page-header .title-header h1',
'render_callback' => '__return_false',
'fallback_refresh' => true
) );

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
<div
style="background-color: rgba(255, 255, 255, <?php echo (get_theme_mod('tainacan_hide_header_box_opacity', 65)/100) ?>) !important;"
class="title-header <?php if ( is_singular() || is_archive() || is_search() || is_home() ) { echo 'singular-title'; }?>">
<h1 class="mb-0 text-truncate">
<h1 class="mb-0">
<?php bloginfo( 'title' ) ?>
</h1>
<?php do_action( 'tainacan-interface-banner-header-description' ); ?>