Add new Portfolio Parent

I have used Ess Grid to create a new portfolio grid. But the grid icon on the top left of each item takes me back to the default portfolio page. I cannot choose from the drop-down menu, my new portfolio page?

Can this be changed?

Hey Paul,

It looks like you’re using Ethos. You will need to override function that contains the link to the parent portfolio page. Here’s the current function which could be found in ethos.php which is located in x\framework\functions\frontend. That needs to be added in your child theme’s functions.php.

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__' ) );

    ?>

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

    <?php

  }
endif;

Change <?php echo $link; ?> to the URL of your Essential Grid page.

Hope that helps.

That worked perfect. Thanks

You are most welcome. :slight_smile:

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