Entry-title not appearing on SOME portfolio posts

Hello,

I am wondering if someone may help me figure out why the portfolio title that appears at the top of posts (class of “h-landmark entry-title”) is not showing up on some posts.

Shows up on this one: https://paulmaxwell.com/work/articulated-cross-dark-center1991-32x32/
Not in this one: https://paulmaxwell.com/work/alternate-setting-1984-1987-36x34/

Hi Gabe,

Thank you for writing in, that is strange, it looks like you did not set up the main Portfolio page? Please have the main Portfolio page and set that Portfolio page to use Layout - Portfolio template. The title of this main Portfolio page should be the one showing up on the h-landmark.

Cheers,

Hello @friech,

That page is technically not the theme’s main portfolio but a curated portfolio page that I am using as the main portfolio for all the artwork. The theme’s portfolio is located at “/work”. I need the portfolio page to stay at that full-width layout so that I can use the portfolio plugin called “Visual Portfolio”.

Each individual section and the artwork within should have the corresponding section title, see example below:

  1. https://paulmaxwell.com/paintings/acrylic-canvas/ = Showing “Acrylic on Canvas” title
  2. https://paulmaxwell.com/work/abstract-sill-life-with-bottles-1964-40x36/ = Should show “Acrylic on Canvas” title
  3. https://paulmaxwell.com/paintings/acrylic-hardboard/ = Showing “Acrylic on Hardboard” title
  4. https://paulmaxwell.com/work/light-sea-2002-24x80/ = Showing “Acrylic on Hardboard” title

Hello Gabe,

You added the portfolio items using the built-in Portfolio feature while you display those items using the Visual Portfolio plugin. We highly recommend that you use the built-in Layout - Portfolio page template to display the portfolio items and assign a portfolio parent page to each of the items.

If you prefer the layout of the Visual Portfolio then it is best that you add your items in Visual Portfolio > Portfolio Items.

Hope this helps.

The category titles are working on some pages…why are they not working on other pages? This is an issue with the theme and not the plugin.

Hi Gabe,

That landmark is not supposed to output the title of the Portfolio post. It should output the title of its parent portfolio page, this is why you need to have a parent portfolio page. In category archive pages it will show the category title.

You need to modify the file _landmark-header.php for the landmark to output a title, you can find that file on this directory \framework\legacy\cranium\headers\views\renew and look on line 46:

echo x_get_parent_portfolio_title();

Replace that with the_title();

But before you do this, please install a child theme and do your modifications there so it will not overwritten when the updates.

Thanks,

1 Like

Thank you @friech, that is really helpful! I understand now!

Now that I updated the code I actually like the individual portfolio item titles showing up, but in all honesty I really want the permalink structure to be like this example:

Start at a portfolio main page such as: https://paulmaxwell.com/paintings/acrylic-paper/
The click on the first painting and you get this URL: https://paulmaxwell.com/work/circa-1950s/ How do I get this structure: https://paulmaxwell.com/paintings/acrylic-paper/circa-1950s/

I tried to edit the portfolio item, as per the logic, to assign a portfolio parent however the selection drop down is empty?

Hi Gabe,

Nothing is showing on the Portfolio Parent option because you don’t have a page that is set to use Layout - Portfolio template.

You can change the Portfolio slug (work) under X > Theme Options > Portfolio > Custom URL Slug, after doing this, to make sure the permalinks get updated navigate Settings > Permalinks and just save it.

Hope it helps,
Cheers!

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