My customisation is ignored with the latest theme update

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.

Hey @kirk74,

One of the reasons why we do not provide support for customizations is it might not work in the future. It’s the user’s responsibility to maintain. It won’t be feasible for us to continually fix custom codes.

In relation to the carousel, a Slider element is in the making and that will allow you to create custom carousels in the future.

I’m sorry if we’re strictly implementing our Terms because it would be unfair for other customers if we do provide customization support for a few.

Please consider signing up to One where we can provide customization guidance.

In case you want us to do the customization, you might want to consult with our Elite team here https://theme.co/elite

Thank you for understanding.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.