Change thumbnail title and image
This commit is contained in:
parent
cbcd4391d0
commit
30901a33e9
|
@ -350,6 +350,12 @@
|
||||||
img {
|
img {
|
||||||
width: 125px;
|
width: 125px;
|
||||||
height: 125px;
|
height: 125px;
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
a:focus {
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.single-item-collection--attachments-prev {
|
.single-item-collection--attachments-prev {
|
||||||
|
@ -441,6 +447,7 @@
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
padding-right: 1rem;
|
padding-right: 1rem;
|
||||||
|
width: 100%;
|
||||||
&:first-of-type:last-of-type {
|
&:first-of-type:last-of-type {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
<div class="single-item-collection--attachments">
|
<div class="single-item-collection--attachments">
|
||||||
<?php foreach ( $attachment as $attachment ) { ?>
|
<?php foreach ( $attachment as $attachment ) { ?>
|
||||||
<div class="single-item-collection--attachments-img">
|
<div class="single-item-collection--attachments-img">
|
||||||
<a href="<?php echo $attachment->guid; ?>">
|
<a href="<?php echo $attachment->guid; ?>" target="_BLANK">
|
||||||
<?php
|
<?php
|
||||||
echo wp_get_attachment_image( $attachment->ID, 'tainacan-item-attachments' );
|
echo wp_get_attachment_image( $attachment->ID, 'tainacan-item-attachments' );
|
||||||
?>
|
?>
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
<div class="card border-0">
|
<div class="card border-0">
|
||||||
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1">
|
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1">
|
||||||
<h3><?php _e('Thumbnail', 'tainacan-theme'); ?></h3>
|
<h3><?php _e('Thumbnail', 'tainacan-theme'); ?></h3>
|
||||||
<img src="<?php echo get_the_post_thumbnail_url(get_the_ID()) ?>" class="item-card--thumbnail mt-2">
|
<img src="<?php echo get_the_post_thumbnail_url(get_the_ID(), 'tainacan-medium-full') ?>" class="item-card--thumbnail mt-2">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card border-0 my-3">
|
<div class="card border-0 my-3">
|
||||||
|
|
Loading…
Reference in New Issue