Portfolio and Envira Gallery

I use for my portfolio the Envira Gallery, it’s work fine - but the problem is, when I click on a thumbnail at the portfolio page the Gallery behind will open, but then I have no link to go back. And in the breadcrumb there is an empty space.

Is this normal???
Thanks in advance,

Hi Astrid,

Would you mind providing the URL to your site so that we can check it?

Thank you.

Since my last post I tried without Envira Gallery, but the problem is always the same:
The single post of the portfolio has no link to go back.
And no way to have no empty space at the right side…
The URL: http://www.dessalator.abwebatelier.com/fr/references/absolute-56/

Thank you

Hello There,

Thanks for providing the url. Your are experiencing this because you haven’t created page for your portfolio page. Please create a new page entitled “Portfolio”. In this page, you will have to use the “Layout - Portfolio” page templates because the breadcrumb will look for a page that uses this template by default. And if you have several page using the portfolio layout, you must select a parent page for each portfolio item so that it links back to the respective portfolio page. Right now, you so not have one and this is why the breadcrumb is not displaying anything. To know more how you can set up the portfolio page and its breadcrumb links, please check this out:

Hope this helps.

I did create this page, but the URL that I sent was a single portfolio:
So again, the portfolio page is this: http://www.dessalator.abwebatelier.com/fr/presentation/references/. Here, everything is fine.
And when I click on the Absolute 56 (for example), the page of this portfolio post shows my problems (see link above).
Thank you

Hey Astrid,

Please try inserting this code in your functions.php

add_filter('x_breadcrumbs_data', 'bc_portfolio_parent_link', 9999999, 2);

function bc_portfolio_parent_link ($crumbs, $args) {
  if ( is_singular('x-portfolio') ) {
    if ( x_is_portfolio_item() ) {
      $link = x_get_parent_portfolio_link();
    } elseif ( x_is_product() ) {
      $link = x_get_shop_link();

    $crumbs[1]['url'] = $link;
  return $crumbs;

If that fixes the issue, this could be part of the breadcrumbs bug. An official fix might be available in one of the succeeding releases.


Thank you for your answer, but that change nothing.
The breadcrumb is still the same.
And there is no link or menu for moving back to the main page of the portfolio.
And the other point is that I can’t use the whole width.
Thank you

Hello There,

Thanks for writing in! You will need to edit each of the portfolio post and assign the parent page or the portfolio parent page. To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look?

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

Thank you.

Hey @astrula,

I have replicated the issue in my test site. Out of the box, the first page using the Layout - Portfolio page template would be the parent of all portfolio items and it will show in the breadcrumbs out of the box. I see you have only one page with Layout - Portfolio template. I’ll report this as a bug.

What @RueNel instructed to assign a parent to your portfolio item would be required for now. Your portfolio page which is this http://www.dessalator.abwebatelier.com/fr/presentation/references/ does not show up in the list because it is a child page of http://www.dessalator.abwebatelier.com/fr/presentation. I removed the parent and now it can be selected.

Hope that helps.

Thank you very much for your help!
Yes the problem with the breadcrumb is resolved.
But there is no kind of menu or link to go back to the portfolio parent, difficult for people who have no “surfing experience”.
And I remember that there was a menu before in an older version of the X-theme.
The other point is the empty space at the right side of the portfolio child.
Do you have any idea?

Hi there,

You mean the small box/icon located on top of the portfolio page? It’s for ethos stack only and your current stack ins integrity. Even the previous version doesn’t have it http://demo.theme.co/integrity-1/portfolio-item/sierra-farm/

And what menu? Plus, the right side of the portfolio is for tags and buttons. If you wish to hide it and make the main content full-width, then please add this CSS to your global custom CSS

.x-portfolio .entry-info {
    float: none;
    width: 100%;
.x-portfolio .entry-extra {
    display: none;


Thank you very much for your help. The CSS was the solution for the content full-width.

You are most welcome!
We’re glad we were able to help you out.

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