Hi. some years ago I added customisation in x-child functions.php file to have ethos post carousel display excerpt instead of meta author date etc on rollover. My customisation has continued to work all this time but now with the latest version of X this is being ignored and meta is displaying instead.
I know that creating this customisation may be out of the scope of your support but since it has worked for ages now and the latest theme update has changed this, I need you to please review the code as you guys can probably easily see what needs to be tweaked to make this work with the latest theme changes?
function x_ethos_entry_cover( $location ) {
if ( $location == 'main-content' ) { ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a class="entry-cover" href="<?php the_permalink(); ?>" style="<?php echo x_ethos_entry_cover_background_image_style(); ?>">
<h2 class="h-entry-cover"><span><?php x_the_alternate_title(); ?></span></h2>
</a>
</article>
<?php } elseif ( $location == 'post-carousel' ) { ?>
<?php GLOBAL $post_carousel_entry_id; ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a class="entry-cover" href="<?php the_permalink(); ?>" style="<?php echo x_ethos_entry_cover_background_image_style(); ?>">
<p class="h-entry-cover"><span><?php ( $post_carousel_entry_id == get_the_ID() ) ? the_title() : x_the_alternate_title(); ?></span></p>
<div class="x-post-carousel-meta">
<?php echo get_the_excerpt(); ?>
</div>
</a>
</article>
<?php }
}
Thanks so much.