As a follow-up to our previous article, Add itemprop=“image” to WP Content Images, we thought we'd show you how to add itemprop=“image” to the Genesis Executive Pro portfolio archive. We use a modified version of that page on this site that is built with the Genesis Parallax Pro theme.
It's actually quite simple. In the Executive Pro child theme folder, you'll find a file named archive-portfolio.php. The source code for archive-portfolio.php is below. Just add itemprop=“image” to the img tag in line 37 as highlighted in the source.
Thanks for this Victor. I’ve been searching all week for different snippets and always end up on your site. I am creating a website with the Exec-Pro child theme. I am trying to get the breadcrumbs to show on the archived portfolio page and the portfolio single pages. For example … Home > Portfolio…
I have my archives ticked in the Genesis Theme Settings but nothing shows on the portfolio pages. Am I missing something? Thanks
Hi Jesse,
In the Executive Pro theme, both the archive-portfolio.php and single-portfolio.php templates have the following code:
//* Remove the breadcrumb navigation
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
This removes the breadcrumbs from the page regardless of what you have checked in the Genesis settings. You need to remove these lines from both of the templates.