Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1140885
    Headlines34
    Participant

    Possible to have a comments section on this page under the Contact us section and name the comments “testimonials”?

    artilliodesigns.com

    Thanks,
    Chuck

    #1140941
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! I have checked your Contact us page and it turns out that you are using the Blank – No Container | Header, Footer page template. Please be advise that this page template doesn’t have a comments section because it is being removed for design purposes. Do you want to add the comments section on this page template or on this page only?

    And if you want to add the comments section, because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once 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/RENEW/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(); ?>>
            <?php x_get_view( 'global', '_content', 'the-content' ); ?>
            <?php x_get_view( 'global', '_comments-template' ); ?>
          </article>
    
        <?php endwhile; ?>
    
      </div>
    
    <?php get_footer(); ?>

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

    And if you only want to have the comments section on this page, you can update this line

    
    <?php x_get_view( 'global', '_comments-template' ); ?>

    and use this code instead:

    
    <?php if (is_page('20') ) : ?>
      <?php x_get_view( 'global', '_comments-template' ); ?>
    <?php endif; ?>

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1140885 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>