• Resolved zombiesinlondon

    (@zombiesinlondon)


    I’m working on switching a friend’s site over to the “X-Renew” theme and I’m trying to integrate ComicEasel into the theme. I’ve managed to add the code to get the comic to show up on the index, but when you hit “back” in the navigation and go to the previous page, you lose the navigation. I’ve tried several places to add the code to get the navigation and no luck. I don’t have the theme active on her site at the moment, so I can’t link it to you right now.

    Does anyone have any experience with X?

    https://www.ads-software.com/plugins/comic-easel/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter zombiesinlondon

    (@zombiesinlondon)

    Here’s what the single.php code looks like, just trying to figure out where to put the <?php do_action('comic-area'); ?>. Putting it at the very top of this document makes the comic and the navigation show up below the featured image (so the comic page displays twice).

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/WP-SINGLE.PHP
    // -----------------------------------------------------------------------------
    // Single post output for Renew.
    // =============================================================================
    
    $fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true );
    
    ?>
    
    <?php get_header(); ?>
    
      <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>
    
    <?php get_footer(); ?>
    Plugin Author Frumph

    (@frumph)

    you would put it under the x-container div and I would need to see the content.php file the one that x_get_view punches out; to tell you how to stop the featured image from displaying

    Thread Starter zombiesinlondon

    (@zombiesinlondon)

    Hi Frumph! Once again, you’re awesome for responding so quickly!

    Here’s the content.php file:

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/CONTENT.PHP
    // -----------------------------------------------------------------------------
    // Standard post output for Renew.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
        <?php x_get_view( 'renew', '_content', 'post-header' ); ?>
        <?php if ( has_post_thumbnail() ) : ?>
          <div class="entry-featured">
            <?php x_featured_image(); ?>
          </div>
        <?php endif; ?>
        <?php x_get_view( 'global', '_content' ); ?>
      </div>
    </article>
    Plugin Author Frumph

    (@frumph)

    change:

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

    to:

    <?php if ( has_post_thumbnail() && ($post->post_type !== 'comic')) : ?>

    basically that says if the post type isn’t comic, then go ahead and do this

    Thread Starter zombiesinlondon

    (@zombiesinlondon)

    Bam, done and done! You’re the best!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Integrating with Themeco theme "X"?’ is closed to new replies.