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

    Rue Nel
    Moderator

    Hello Micheal,

    After doing some inspection on the page, you have inserted an invalid custom js in the customizer. Please change your code to this.

    $(document).ready(function() {
         
         var el_a = $('#' + location.href.split("#").slice(-1)[0] );
    
         if( el_a.length > 0 ){ 
    
         $( 'a[href="#'+ el_a.attr('id') +'"]' ).trigger('click');
    
         $('html,body').stop().animate({scrollTop: el_a.offset().top - $('#wpadminbar').height() },700 ,'swing');
    
         }
    
      });

    You’ve got an extra }); which created an issue. This may cause further issues later on. On this page, you may have disabled the comment that is why you are not seeing it. Please edit back again your page and enable the comments. You can do it in Cornerstone by going to Settings tab > WordPress Settings (http://prntscr.com/8tzcdq)

    Hope this helps. Please let us know how it goes.

    #635546

    Michael H
    Participant

    Thanks for this issue note.

    For comment. It is activated like your screenshot on this page.
    Any other idea?

    Thanks
    Michael

    #635620

    Zeshan
    Member

    Hi Michael,

    Thanks for writing back. I’ve checked your page and it’s using Blank – No Container | Header, Footer page template. Please note that comments are not available in that page template. If you still want to show comments on that page template, it’ll require a template change. I’m seeing child theme installed in your site, so now you can just copy the file wp-content/themes/x/framework/views/renew/template-blank-4.php in your child theme’s folder /framework/views/renew/, open the copied file in a text editor and replace entire code with following:

    <?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(); ?>
    

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thank you!

    #635668

    Michael H
    Participant

    Many many thanks for your great support.
    All works well now. I have only to adjust some css for comments.

    Have a great time.
    Best Regards
    Michael

    #635757

    Zeshan
    Member

    You’re most welcome and glad we could help! 🙂 Have a great day!