Portfolio won't work. When clicking an item gets 404

Hi everyone. I am new here with the X-theme.

I’m setting up the porfolio in my website. Everything worked fine with the default portfolio, but once I started setting my own it doesn’t work anymore. Though I can see the items in the portfolio webpage, when I click on any of them I get a 404 error every single time.

As I read in this forum that changing or saving the permalinks settings fixed the problem to some people, I tried to change them to numeric/name. It doesn’t work for me.

Some help is highly appreciated.

Fran.

Hi There,

Thanks for writing in!

I can see you have two portfolio pages with Portfolio template. Please delete one of them even from trash. Please check if it work!

Thanks

Hi @basanta and thanks for the quick response.

There was two Portfolio pages because I tried to make a new one to see if it worked out somehow the problem, but it didn’t.

I already deleted one of the portfolio pages, even from trash, and the problem continues :frowning:

Fran.

Hi again,

I just changed the Custom URL Slug from portfolio to showcase and everything started to work as expected. You had a page named portfolio and your Custom URL Slug was also set to portfolio may be that was the conflict. I changed the Custom URL Slug via Appearance > Customize > Portfolio and it seems to fixed the issue. Try testing your portfolio item
here http://frananon.com/portfolio/

Hope this helps!

Hi @Nabeel. It seems to work perfectly.

Thank you very much! :smile:

Fran.

1 Like

Glad we could help.

Cheers!

Sorry to bother you again @Nabeel , but I noticed that now the breadcrumb when you are browsing the portfolio goes like this:

Home->portfolio (Which seems fine to me)

But when you are in a portfolio item, it goes like this:

Home->Case Studies->Title of the Portfolio Item.

Instead of

Home->Portfolio->Title of the Portfolio Item (Which I think is the logical path).

How can I solve this? I’m not interested in show or use any “Case Studies” page.
Thanks!

Fran.

Hi Fran,

In that case, Navigate to Pages and delete Case Studies page.

Wow. Simple as that. I was afraid it would broke the portfolio, but it totally works! :smiley: :thumbsup:

Thank you so Much!

Fran.

You are Most welcome!

Sorry, but there is still one problem with my portfolio.
Now the breadcrumb is ok when in a Portfolio Item, but when you click on “Portfolio”, it sends you to a page named “Showcase” that works exactly the same as the deleted “Case Studies”. I don’t find any “Showcase” page on my Wordpress, so I guess I can’t solve it like the previous issue.
What I want is that when you click on the “Portfolio” section of the breadcrumb, it leads you to the “Porfolio” section again.

I’m sorry if this is a stupid request, but as I said, I’m pretty much a newbie.

Thanks!

Fran.

Hi Fran,

That might be because of the slug setting that you have set.

Please check in X > Theme Options > Portfolio > Custom URL Slug.

Hope this helps.

Hi @Jade, and thanks for the answer.

Erasing the Custom URL Slug indeed sets the breadcrumb correctly, but when clicking on “Portfolio” on the breadcrumb from the portfolio-item, it doesn’t displays as a before. It looks like the previous “Showcase”, or “Case-Studies” pages, now called “X-Portfolio”. What I want is to get back to the Portfolio as displayed from the Menu, showing the items in rows (as a Portfolio page), so you can easily select another portfolio item.

Please, can you help me with this?

Thanks again!

Hi There,

Navigate to Theme Options > Blog under the ARCHIVES area set the Style to Masonry and Layout to Fullwidth, then how many Columns.

Hope it helps,
Cheers!

Hi @friech and thanks for the tip.

It looks much better now, but still, when in a portfolio item you click on “Portfolio” from the breadcrumb, it goes to the “x-portfolio” instead of the “portfolio”. What I would like is to go to the actual “portfolio” page, just like if I clicked on the menu. I mean… to make it work like a classic breadcrumb :smile:

Thanks!

Fran.

Hey Fran,

There’s currently a known issue with the portfolio and our Breadcrumbs. Please try adding this code to your functions.php to see if this will solve the issue.

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;
}

Thanks.

It works! Thank you! :grinning:

Glad to hear it!

Cheers!

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