Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #324479

    jmgb689
    Participant

    Hi,

    My url is http://www.arthica.com (icon stack), what code should I add at my child theme’s functions.php to see the submit form and existing comments in blank templates?.

    Thank you

    #324605

    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! Please follow the instructions here https://community.theme.co//forums/topic/comments-on-blank-template-2/#post-191366 this will work with Icon stack as well.

    If this doesn’t work for you then please provide the link of the page where you’re using a blank template so we could check closely.

    Let us know how this goes!

    #325753

    jmgb689
    Participant
    This reply has been marked as private.
    #325909

    Zeshan
    Member

    Hi there,

    Thanks for the URL!

    Upon checking, it looks like you did not activate your child theme. Please activate it under Appearance > Themes.

    Thanks!

    #326767

    jmgb689
    Participant
    This reply has been marked as private.
    #326906

    Nabeel A
    Moderator

    Hi again,

    This requires a template change, so first remove the previous code from the child theme’s functions.php file. Then create an empty file and name it as template-blank-4.php. Paste the following code inside the file:

    <?php
    
    // =============================================================================
    // VIEWS/ICON/TEMPLATE-BLANK-4.PHP (No Container | Header, Footer)
    // -----------------------------------------------------------------------------
    // A blank page for creating unique layouts.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-main full" role="main">
    
        <?php while ( have_posts() ) : the_post(); ?>
    
          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            <div class="entry-wrap">
              <?php x_get_view( 'global', '_content', 'the-content' ); ?>
            </div>
          </article>
    
        <?php endwhile; ?>
    
      </div>
    
      <?php x_get_view( 'icon', '_template-blank-sidebar' ); ?>
      <?php x_get_view( 'global', '_comments-template' ); ?>
    
    <?php get_footer(); ?>

    Save it. Upload the file to /wp-content/themes/x-child/framework/views/icon/ directory via FTP.

    Don’t forget to clear your browser’s cache after uploading the file to the server. Let us know how this goes!

    #330766

    jmgb689
    Participant

    Thank you very much, it works very well.

    #330780

    Christopher
    Moderator

    You are welcome.