Upgrade from X to Pro - portfolio excerpts missing

Hi,

I upgraded from X to Pro recently and just noticed that on a particular page, Excerpts are not showing up on a portfolio layout page for each portfolio item.

I switched back to X (live preview) and they are showing.

I tried using the show excerpt details provided in previous posts but this shows excerpts for other pages where this isn’t wanted!

Any ideas?

Hi @ashleybassett

I’ve checked your website and I can see that some of the CSS codes you set in (Theme Options > CSS) like this one:

.page-id-28 .x-portfolio .entry-title.entry-title-portfolio {
    display: none;
}

Might cause this issue, please backup the codes added there then delete them and recheck this issue, if this didn’t help in narrowing down this issue, then please provide us with WordPress Dashboard login details in a “Secure Note” so we can investigate this issue.

Thanks.

Thanks for coming back. This didn’t solve the issue be removing this code. As mentioned before, this was working in X-Theme, but seems to have stopped since the upgrade to Pro.

Thanks

Hi There,

Thanks for the details!

I can see a CSS code hiding the title of the item, but I didn’t find excerpt in the page.

Please remove this CSS to show the title.

.page-id-28 .entry-title {
    display: none;
}

regarding the excerpt issue, can you please confirm if you have added custom code before? because portfolio item doesn’t show excerpt by default.

Thanks

HI thanks for taking a look. We remove the title as we have a smaller heading tag in the excerpt, potentially slightly different from the page title. I don’t recall doing an custom code to it, and couldn’t find any other (page specific) coding. The excerpt just stopped showing in this theme.

I created new page with the portfolio layout and excerpts weren’t showing there either.

Hello @ashleybassett,

Thanks for updating the thread. :slight_smile:

I actually took at look at the setup and still see the custom code hiding the title that my colleague reported in preview reply. Under X > Theme Options > CSS on line number 201 I still see the code that’s responsible for hiding the same. I am sharing the screenshot in secure note, please take a look.

Thanks.

Hi, again, thanks for the reply.

Hi @ashleybassett,

How did you implement the excerpt on the portfolio index page? Is it really a portfolio page? I checked the code from the latest and old version of the X theme and there is no code related to excerpt so I wonder how it’s being displayed on your site before the upgrade. This is the code pulled from \x\framework\views\integrity\

<?php

// =============================================================================
// VIEWS/INTEGRITY/CONTENT-PORTFOLIO.PHP
// -----------------------------------------------------------------------------
// Portfolio post output for Integrity.
// =============================================================================

$archive_share = x_get_option( 'x_integrity_portfolio_archive_post_sharing_enable' );

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  <div class="entry-featured">
    <?php x_portfolio_item_featured_content(); ?>
  </div>
  <div class="entry-wrap cf">

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

      <div class="entry-info">
        <header class="entry-header">
          <h1 class="entry-title entry-title-portfolio"><?php the_title(); ?></h1>
          <?php x_integrity_entry_meta(); ?>
        </header>
        <?php x_get_view( 'global', '_content', 'the-content' ); ?>
      </div>
      <div class="entry-extra">
        <?php x_portfolio_item_tags(); ?>
        <?php x_portfolio_item_project_link(); ?>
        <?php x_portfolio_item_social(); ?>
      </div>

    <?php else : ?>

      <header class="entry-header">
        <h2 class="entry-title entry-title-portfolio">
          <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
        </h2>
        <?php if ( $archive_share == '1' ) : ?>
          <?php x_portfolio_item_social(); ?>
        <?php endif; ?>
      </header>

    <?php endif; ?>

  </div>
</article>

Thanks!

Got there in the end…thank you very much! Copied "content_portfolio"file to the child theme and added the line

<?php x_get_view( 'global', '_content', 'the-excerpt' ); ?>

Cheers for your help.

Ashley

We are glad we were able to help you Ashley, you are welcome :slight_smile:

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