Change the truncate title on banner to class of bootstrap

This commit is contained in:
Fabiano 2018-07-11 15:39:43 -03:00
parent 9a82b3e978
commit 052af7b218
1 changed files with 5 additions and 2 deletions

View File

@ -6,9 +6,12 @@
<div <?php if ( get_header_image() ) : ?>class="page-header header-filter clear-filter page-height" style="background-image: url('<?php header_image(); ?>')"<?php else: ?>class="page-header header-filter clear-filter align-items-center" style="background-image: url('<?php echo get_template_directory_uri() ?>/assets/images/capa.png')"<?php endif; ?>>
<div class="container-fluid p-0 ph-title-description">
<div class="bg-white-title title-header <?php if(is_singular() || is_archive()) { echo 'singular-title'; }?>">
<h1 class="mb-0">
<h1 class="mb-0 text-truncate">
<?php if(is_home()) { ?> Blog <?php bloginfo('title'); }?>
<?php if(is_singular()) { echo mb_strimwidth(get_the_title(),0,25,'...');/* the_title(); */ }?>
<?php if(is_singular()) {
/* echo mb_strimwidth(get_the_title(),0,25,'...'); */
the_title();
}?>
<?php if(is_archive()) { ?> <?php echo get_the_archive_title(); }?>
</h1>
<?php if(is_home()) {?> <span><?php bloginfo('description'); }?></span>