Cornerstone builder area below main portfolio content

Is it possible to add a new Cornerstone editable field below the existing content sections on an individual portfolio item?

I want to add content here:

I am comfortable editing code in a child theme, but want to know if it’s possible to assign the ability for Cornerstone to modify a custom field in this way.

Thanks!

Hello There,

Thanks for writing in!

Cornerstone is a page and a post builder. You can only use Cornerstone to create/edit a page or post and it will only display in the page/post content areas designated in the theme. In your portfolio item post, the layout is divided into two. The left which is the portfolio featured image and the right side which is the portfolio item description or content. Only the right side maybe editable with Cornerstone. Regretfully there isn’t a way that you can add another content block for your to edit in Cornerstone.

If you want, you can move the editable content to that area. To do that assuming you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file

<?php

// =============================================================================
// VIEWS/ETHOS/CONTENT-PORTFOLIO.PHP
// -----------------------------------------------------------------------------
// Portfolio post output for Ethos.
// =============================================================================

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  <?php x_ethos_entry_top_navigation(); ?>
  <div class="entry-featured">
    <?php x_portfolio_item_featured_content(); ?>
  </div>
  <div class="entry-wrap cf">
    <div class="entry-extra">
      <?php x_portfolio_item_project_link(); ?>
      <?php x_portfolio_item_tags(); ?>
      <?php x_portfolio_item_social(); ?>
    </div>
  </div>

  <div style="clear: both;">
        <?php x_get_view( 'global', '_content', 'the-content' ); ?>
  </div>
</article>

3] Save the file named as content-portfolio.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/framework/views/ethos/

You will need to create the folder path since it does not exist in the child theme yet.

Please let us know if this works out for you.

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