Skip to content

Commit 058f05a

Browse files
author
Ariel Jolo
committed
trying new layout
1 parent c06d0da commit 058f05a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

themes/osi/template-parts/header-board-member.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="wp-block-cover__inner-container">
44
<div class="wp-block-columns">
55
<!-- Left Column -->
6-
<div class="wp-block-column">
6+
<div class="wp-block-column" style="text-align: center;">
77
<?php if (has_post_thumbnail()) : ?>
88
<div class="member-image">
99
<?php the_post_thumbnail('full', array('class' => 'circular-image')); ?>
@@ -41,6 +41,13 @@
4141
<span class="member-seat">
4242
<?php echo __('Type of Seat', 'osi') . ': ' . wp_kses_post(osi_get_single_taxonomy_terms_links($post, 'taxonomy-seat-type')); ?>
4343
</span>
44+
45+
<!-- Add back the term item -->
46+
<?php if(osi_field_check('term_item')) : ?>
47+
<span class="member-term-item">
48+
<?php osi_the_valid_field('term_item'); ?>
49+
</span>
50+
<?php endif; ?>
4451
</div>
4552
</div>
4653
</div>
@@ -54,13 +61,14 @@
5461
.member-image img.circular-image {
5562
border-radius: 50%;
5663
border: 4px solid #FFF;
57-
width: 300px;
58-
height: 300px;
64+
width: 200px; /* adjust as needed */
65+
height: 200px;
5966
object-fit: cover;
6067
}
6168
.member-position,
6269
.member-dates,
63-
.member-seat {
70+
.member-seat,
71+
.member-term-item {
6472
display: block;
6573
margin-bottom: 1rem;
6674
}

0 commit comments

Comments
 (0)