Uses get_image_tag to render alt attributes for collection header image.
This commit is contained in:
parent
b0798164c8
commit
92b8e5f866
|
@ -83,25 +83,26 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.image-placeholder {
|
.image-placeholder {
|
||||||
height: calc(12.5% - 12px);
|
width: 185px;
|
||||||
width: calc(12.5% - 12px);
|
height: 185px;
|
||||||
max-width: calc(12.5% - 12px);
|
top: -88px;
|
||||||
top: calc(-1 * (4.166667% + 12px));
|
|
||||||
height: calc(12.5vw - 12px);
|
|
||||||
width: calc(12.5vw - 12px);
|
|
||||||
max-width: calc(12.5vw - 12px);
|
|
||||||
top: calc(-1 * (4.166667vw + 12px));
|
|
||||||
border-width: 3px !important;
|
border-width: 3px !important;
|
||||||
|
|
||||||
|
@media screen and (max-width: 1526px) {
|
||||||
|
left: 4.1666667vw;
|
||||||
|
top: -68px;
|
||||||
|
height: 150px;
|
||||||
|
width: 150px;
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 2.5rem !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
height: calc(20.83333% - 12px);
|
top: -45px;
|
||||||
width: calc(20.83333% - 12px);
|
height: 110px;
|
||||||
max-width: calc(20.83333% - 12px);
|
width: 110px;
|
||||||
top: calc(-1 * (8.3333% + 12px));
|
|
||||||
height: calc(20.83333vw - 12px);
|
|
||||||
width: calc(20.83333vw - 12px);
|
|
||||||
max-width: calc(20.83333vw - 12px);
|
|
||||||
top: calc(-1 * (8.3333vw + 12px));
|
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 2.0rem !important;
|
font-size: 2.0rem !important;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -23,7 +23,10 @@ if ( $background_color ) {
|
||||||
echo '</style>';
|
echo '</style>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( get_header_image() ) : ?>
|
<?php if ( get_header_image_tag() ) : ?>
|
||||||
|
<div class="page-header header-filter page-height page-header--image-full">
|
||||||
|
<?php echo get_header_image_tag() ?>
|
||||||
|
<?php elseif ( get_header_image() ) : ?>
|
||||||
<div class="page-header header-filter page-height page-header--image-full">
|
<div class="page-header header-filter page-height page-header--image-full">
|
||||||
<img class="page-header__image" src="<?php header_image(); ?>" alt="Imagem">
|
<img class="page-header__image" src="<?php header_image(); ?>" alt="Imagem">
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
Loading…
Reference in New Issue