Viewing 6 replies - 1 through 6 (of 6 total)
  • frankpineda

    (@frankpineda)

    Where you able to solve this Kostas Vrouvas? If so, could share your solution, please.

    Thread Starter Kostas Vrouvas

    (@kosvrouvas)

    Hi frankpineda.

    Since “Facebook Comments by Fat Panda” replaces the theme’s and/or WP comments, all I did was to edit single.php, find the following <div> and change it’s position:

    <div class="comments">
          <?php comments_template(); ?>
          </div>

    You can put it a few lines above, depending where you want it. Hope I helped!

    frankpineda

    (@frankpineda)

    Thanks man!

    Thread Starter Kostas Vrouvas

    (@kosvrouvas)

    For anyone else: Be aware that themes deffer, so the file you need to edit may have a different name like:

    single.php
    single-post.php

    etc. etc.

    This applies for the code too.

    how do i create the widget on center.
    it show left on me.
    like this picture
    https://www.mediafire.com/convkey/c860/t9lefzgemhd7ef76g.jpg

    ahh sory didn’t realize it

    i change like this on Twenty Fourteen: Single Post (single.php)

    <?php
    /**
     * The Template for displaying all single posts
     *
     * @package WordPress
     * @subpackage Twenty_Fourteen
     * @since Twenty Fourteen 1.0
     */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area">
    		<div id="content" class="site-content" role="main">
    			<?php
    				// Start the Loop.
    				while ( have_posts() ) : the_post();
    
    					/*
    					 * Include the post format-specific template for the content. If you want to
    					 * use this in a child theme, then include a file called called content-___.php
    					 * (where ___ is the post format) and that will be used instead.
    					 */
    					get_template_part( 'content', get_post_format() );
    
    					// Previous/next post navigation.
    					twentyfourteen_post_nav();
    
    					// If comments are open or we have at least one comment, load up the comment template.
    					if ( comments_open() || get_comments_number() ) {
    						//comments_template();
    					?>
    						<div class="comments" align="center">
          						<?php comments_template(); ?>
          						</div>
    					<?php
    					}
    				endwhile;
    			?>
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php
    get_sidebar( 'content' );
    get_sidebar();
    get_footer();

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Change position of FB Comments’ is closed to new replies.