Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1188382
    Johannes G
    Participant

    Hello,

    I need to enable facebook comments on this page: https://cyclegrinder.com (no-container, no header, with footer)

    I got the beneath. Please help me! Its a little urgent.

    My best regards from Berlin
    Johannes

    <?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(); ?>
    #1188618
    Friech
    Moderator

    Hi Johannes,

    Thanks for writing in! Can you confirm you install the Facebook Comments extension from the Addons panel? If not, please do so. Else provide us with login credentials (wp-admin and FTP) in private reply, so we can take a closer look.

    Cheers!

    #1191109
    Johannes G
    Participant
    This reply has been marked as private.
    #1191114
    Johannes G
    Participant
    This reply has been marked as private.
    #1191147
    Thai
    Moderator

    Hi There,

    You have to copy the template-blank-8.php file to /wp-content/themes/x-child/framework/views/renew with the following code:

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/TEMPLATE-BLANK-8.PHP (No Container | No Header, Footer)
    // -----------------------------------------------------------------------------
    // A blank page for creating unique layouts.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( 'global', '_header' ); ?>
    
      <?php x_get_view( 'global', '_slider-above' ); ?>
      <?php x_get_view( 'global', '_slider-below' ); ?>
    
      <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(); ?>

    I’ve already done that, the facebook comment appeared.

    Cheers!

    #1191353
    Johannes G
    Participant

    thank you!!!

    #1191384
    Johannes G
    Participant

    One more question: is it possible to make it the same size as the content above? it looks weird since its full width. I tried some css but it is alyways aligned to the left. I need it to be centered.

    regards
    Johannes

    #1191429
    Jade
    Moderator

    Hi Johannes,

    Please try this code instead:

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/TEMPLATE-BLANK-8.PHP (No Container | No Header, Footer)
    // -----------------------------------------------------------------------------
    // A blank page for creating unique layouts.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( 'global', '_header' ); ?>
    
      <?php x_get_view( 'global', '_slider-above' ); ?>
      <?php x_get_view( 'global', '_slider-below' ); ?>
    
      <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' ); ?>
            <div class="x-container max width"><?php x_get_view( 'global', '_comments-template' ); ?></div>
          </article>
    
        <?php endwhile; ?>
    
      </div>
    
    <?php get_footer(); ?>

    Hope this helps.

    #1192048
    Johannes G
    Participant

    thx!!!!!

    #1192055
    Lely
    Moderator

    You’re welcome Johannes!

    Cheers!

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