Two Portfolio Issues

Hi,

I am having two issues with portfolio which I cant seem to find an answer to. The first issue is that when I choose Portfolio Layout when setting up the page the page displays the images ok but I loose the page title. If I choose another layout the page title then displays again. The second issue I am having is that all though the portfolio images display ok on the portfolio page I cannot find a way to add a titles for the images, under the image, as your examples show. Even if I toggle the social icons to display, thye also do not display under the images as your examples show.

You can view the page her to see what I mean. https://madison.test.wordpress.intunet.co.uk/index.php/floor-products/

Thanks for reading, any help would be much appreciated.

Hi there,

By default, the Portfolio page title does not show up for the Icon stack. If you want it added on the page, you will have to override the portfolio template using the child theme.

Once you have the child theme installed and activated, login through FTP and go to the following directory: wp-content/themes/x-child/framework/views/icon then create the file template-layout-portfolio.php.

Edit the file and add the codes below:

<?php

// =============================================================================
// VIEWS/ICON/TEMPLATE-LAYOUT-PORTFOLIO.PHP
// -----------------------------------------------------------------------------
// Portfolio page output for Icon.
// =============================================================================

get_header();

?>

  <div class="x-main full" role="main">
    <div class="x-container offset-bottom">
		
		<header class="entry-header" style="padding: 20px 0;">
			<h1 class="entry-title"><?php the_title(); ?></h1>
		</header>	

      <?php x_portfolio_filters(); ?>
      <?php x_get_view( 'global', '_portfolio' ); ?>

    </div>
  </div>

  <?php get_sidebar(); ?>
<?php get_footer(); ?>

After that, create the file content-portfolio.php in the same directory then add this code:

<?php

// =============================================================================
// VIEWS/ICON/CONTENT-PORTFOLIO.PHP
// -----------------------------------------------------------------------------
// Portfolio post output for Icon.
// =============================================================================

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  <div class="entry-wrap">
    <div class="x-container max width">

        <header class="entry-header">
          <h2 class="entry-title"><?php the_title(); ?></h2>
          <?php x_icon_entry_meta(); ?>
        </header>

      <div class="entry-featured">
        <?php x_portfolio_item_featured_content(); ?>
      </div>

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

        <?php x_get_view( 'global', '_content', 'the-content' ); ?>
        <div class="entry-extra">
          <?php x_portfolio_item_tags(); ?>
          <?php x_portfolio_item_project_link(); ?>
          <?php x_portfolio_item_social(); ?>
        </div>

      <?php endif; ?>

    </div>
  </div>
</article>

Please note that since we are overriding the usual display of the Icon stack, you will have to update the code accordingly as maintaining suggested codes goes beyond the scope of our support.

Hope this helps.

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