Chevrons missing after update (X 6.3.6)

Hi there,
after fixing the chevrons and search icon, post update 6.2.5

.x-icon-chevron-right:before {
    content: "\f054";
}
.x-icon-chevron-left:before {
    content: "\f053";
}
.x-icon-search:before {
  content: "\f002";
}

The new update broke the icons again

Hello @Mbzo,

Thanks for writing in!

Please be informed that we have changed the way to display the icons. Please have your code updated and use this instead:

// Custom Entry Navigation
// =============================================================================

if ( ! function_exists( 'x_entry_navigation' ) ) :
  function x_entry_navigation() {

  $stack = x_get_stack();

  if ( $stack == 'ethos' ) {
    $left_icon  = '<i class="x-icon-chevron-left" data-x-icon-s="&#xf053;"></i>';
    $right_icon = '<i class="x-icon-chevron-right" data-x-icon-s="&#xf054;"></i>';
  } else {
    $left_icon  = '<i class="x-icon-arrow-left" data-x-icon-s="&#xf060;"></i>';
    $right_icon = '<i class="x-icon-arrow-right" data-x-icon-s="&#xf061;"></i>';
  }

  $is_ltr    = ! is_rtl();
  $prev_post = get_adjacent_post( false, '', false );
  $next_post = get_adjacent_post( false, '', true );
  $prev_icon = ( $is_ltr ) ? $left_icon : $right_icon;
  $next_icon = ( $is_ltr ) ? $right_icon : $left_icon;

  ?>

  <div class="x-nav-articles">

    <?php if ( $prev_post ) : ?>

        <?php echo $prev_icon; ?>

    <?php endif; ?>

    <?php if ( $next_post ) : ?>

        <?php echo $next_icon; ?>

    <?php endif; ?>

  </div>

  <?php

  }
endif;

We would loved to know if this has work for you. Thank you.

Thanks. The chevrons are back. Now to fix the missing search icon in the navbar.

I´m confused about this piece of code for next and previous posts:

Normally, it would be like this:
$prev_post = get_adjacent_post( true, ‘’, true, ‘taxonomy_slug’ );
$next_post = get_adjacent_post( true, ‘’, false, ‘taxonomy_slug’ );

Hi again,

To fix the missing search icon, try adding the following code in your child theme’s style.css file:

.x-icon-search {
    font-family: "FontAwesome";
}

The last parameter 'taxonomy_slug' in the code $prev_post = get_adjacent_post( true, '', true, 'taxonomy_slug' ); is optional and is used when the first parameter is set to true to learn more about this function please see https://codex.wordpress.org/Function_Reference/get_adjacent_post

Hope this helps!

Thanks for the font help. Fixed!
No, the code is a little different $prev_post = get_adjacent_post( false, ‘’, false );
not sure why. Not an issue. Just curious.

You are most welcome. :slight_smile:

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