gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
For the $cmgfamiliesvideo part, can you make the video to open in a Bootstrap modal with…
- User
For the $cmg_families_video part, can you make the video to open in a Bootstrap modal with a x button to close?
code<div class="row justify-content-center text-center mb-4"> <div class="col-12"> <h1 class="fw-bold display-4 mb-1" style="color: rgb(102,102,102)">Meet Our Families</h1> <p style="color: rgb(102,102,102)">Click any photo for more information on a family!<br> To view additional families or to learn more about these families,<br> please <a class="cmg-text-secondary fw-bold text-decoration-underline" href="/contact">contact us</a> today!</p> <p style="color: rgb(102,102,102)" class="mb-1">Click <a class="cmg-text-secondary fw-bold text-decoration-underline" href="/gallery">here</a> to view some of our happily placed families!<br> </div> </div> <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-4 g-lg-4 g-xl-5"> <?php if($the_query->have_posts()) { while($the_query->have_posts()) { $the_query->the_post(); $cmg_families_video = get_field('cmg_families_video'); $cmg_families_banner = get_field('cmg_families_banner'); if($cmg_families_banner == 'Boy') { $banner_img_id = '952'; } elseif($cmg_families_banner == 'Girl') { $banner_img_id = '951'; } elseif($cmg_families_banner == 'Connected') { $banner_img_id = '950'; }?> <div class="fo-waiting-families-item"> <div class="bg-transparent"> <div class="rounded shadow-lg position-relative overflow-hidden" style="border-radius: 20px !important;"> <a href="<?php echo the_permalink();?>"> <img class="object-fit-cover w-100 p-2" style="height: 288px !important; border-radius: 20px !important;" src="<?php echo bcb_image_url(bcb_image_id()) ?>" alt="<?php echo bcb_image_url(bcb_image_id()) ?>"> <?php if($cmg_families_banner) {?> <img class="position-absolute bottom-0 end-0" width="150" src="<?php echo bcb_image_url($banner_img_id) ?>" alt="<?php echo bcb_image_url($banner_img_id) ?>"> <?php }?> </a> </div> </div> <div class="ms-2 mt-3 mb-0 text-start"> <h5 class="fw-600 cmg-text-primary mb-0"><?php echo the_title() ?></h5> <p class="fw-bold mb-0" style="color: rgb(102,102,102)">New Jersey</p> <a href="<?php echo the_permalink()?>" style="color: rgb(102,102,102)">Family Profile →</a> <?php if($cmg_families_video) {?> <div class="mt-3"> <a href="<?php echo $cmg_families_video;?>" class="btn cmg-btn-primary">Watch Our Video!</a> </div> <?php }?> </div> </div> <?php wp_reset_postdata(); }} ?> </div> </div> - Assistant