Sections Not Showing In Cornerstone

Hi,

I had another thread regarding creating a custom template, but no one responded after two days, so I am assuming I was just lost in the shuffle as other posts after mine were answered. So I am creating a new post.

I eventually figured out how to get the custom post template created (or so I thought). I based it off single.php and wp-single.php, making the changes I thought I needed to make.

I created a lesson (it’s for a course) and chose this from the post attribute drop down. Everything seemed fine. Then, I came back to that page later in Cornerstone and none of the sections nor content within are visible, but if I look at the live page it’s all there.

I also noticed it won’t let me even drag an element onto the content area. It stops at the edge of the builder. I don’t remember making any additional changes to the template between the original and that point. I have since made numerous attempts.

On top of that somehow I lost my admin bar on these pages. Below is the file in the views folder. I appreciate any input. Thanks.

<?php

// =============================================================================
// VIEWS/RENEW/WP-SINGLE-IMS-LESSON.PHP
// -----------------------------------------------------------------------------
// IMS lesson for Renew.
// =============================================================================

$fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true );

?>

<?php get_header(); ?>
  
 <div class="x-main full">
    <div id="cs-content" class="cs-content"><div id="ims-lesson-head"  class="course-header-section"  style="margin: 0px;padding: 0px; background-color: transparent;"   ><div  class="x-container max width marginless-columns"  style="margin: 0px auto;padding: 0px;"   ><div  class="x-column x-sm course-progress-col x-1-2" style="padding: 0px;" ><img  class="x-img x-img-none" style="margin:0px;" src="data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=" data-lazy-src="http://careermadesimple.com/mundane/wp-content/uploads/2017/07/InterviewTest.png" ><noscript><img  class="x-img x-img-none" style="margin:0px;" src="http://careermadesimple.com/mundane/wp-content/uploads/2017/07/InterviewTest.png" ></noscript></div><div  class="x-column x-sm course-progress-col x-1-2" style="padding: 0px;" ><div  class="x-text course-text-header"    ><h1 class="course-h1">Interviews Made Simple</h1>
<?php echo do_shortcode("[learndash_course_progress]"); ?>
</div></div></div></div></div></div>

  <div class="x-container max width offset">
    <div class="<?php x_main_content_class(); ?>" role="main">

      <?php while ( have_posts() ) : the_post(); ?>
        <?php x_get_view( 'renew', 'content', get_post_format() ); ?>
        <?php x_get_view( 'global', '_comments-template' ); ?>
      <?php endwhile; ?>

    </div>

    <?php if ( $fullwidth != 'on' ) : ?>
      <?php get_sidebar(); ?>
    <?php endif; ?>

  </div>

I’m not sure how to delete a thread, but I moved it to my original thread as it is related/direct result.

Hi,

We’ll closed this thread.

Thanks