Hide products navigation arrows

Hello, I have modified my son php template, but how can I hide in the products navigation products “the arrows”?


 function x_ethos_entry_top_navigation () {

    if ( x_is_portfolio_item() ) {
      $link = 'LINK';
    } elseif ( x_is_product() ) {
      $link = 'LINK';
    }

    $title = esc_attr( __( 'See All Posts', '__x__' ) );

    ?>

      <div class="entry-top-navigation">
        <a href="<?php echo $link; ?>" class="entry-parent" title="<?php $title; ?>"><i class="x-icon-th" data-x-icon-s="&#xf00a;"></i></a>
        <?php x_entry_navigation(); ?>
      </div>

    <?php

  }

Hi @PANCRAZIO,

Thanks for writing in!

To hide the arrows in your product page, please make use of this code instead:

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

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

    if ( x_is_portfolio_item() ) {
      $link = x_get_parent_portfolio_link();
    } elseif ( x_is_product() ) {
      $link = x_get_shop_link();
    }

    $title = esc_attr( __( 'See All Posts', '__x__' ) );

    ?>

    <?php if ( x_is_portfolio_item() ) : ?>

      <div class="entry-top-navigation">
        <a href="<?php echo $link; ?>" class="entry-parent" title="<?php $title; ?>"><i class="x-icon-th" data-x-icon-s="&#xf00a;"></i></a>
        <?php x_entry_navigation(); ?>
      </div>

    <?php endif;

  }
endif;

// =============================================================================

We would love to know if this has worked for you. Thank you.

Thank you, and how can I hide a category of products from searches?

Hey @PANCRAZIO,

Regretfully, excluding pages from search is not a theme feature. To achieve that, you can try following this guide: https://www.wpbeginner.com/plugins/how-to-exclude-specific-pages-authors-and-more-from-wordpress-search/

Please just note that we do not have custom development support. We that said, we won’t be able to help if you encounter issues with custom codes including custom code we suggest here in the forum. They only serve as a guide. For further development and maintenance, you’ll need to consult with a third party developer.

Hope that helps and thank you for understanding.

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