WordPress.org

Ready to get started?Download WordPress

Forums

How to stop facebook social plugin from showing up on pages? (1 post)

  1. orgzchaos
    Member
    Posted 1 year ago #

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    					<?php if ( is_front_page() ) { ?>
    						<x2 class="entry-title"><?php the_title(); ?></x2>
    					<?php } else { ?>
    						<x1 class="entry-title"><?php the_title(); ?></x1>
    					<?php } ?>
    
    					<div class="entry-content">
    						<?php the_content(); ?>
    
    						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'imbalance2' ), 'after' => '</div>' ) ); ?>
    						<?php edit_post_link( __( 'Edit', 'imbalance2' ), '<span class="edit-link">', '</span>' ); ?>
    
    						<div class="clear"></div>
    
    					</div><!-- .entry-content -->
    				</div>
    <!-- #post-## -->
    <?php comments_template( '', true ); ?>
    <?php endwhile; // end of the loop. ?>

    I am using the official FB social plugin and above is my code for my loop-page.php file. What I don't want is people commenting on pages, instead of posts so what I did was I removed <?php comments_template( '', true ); ?> but still facebook comments box won't go. I don't know from where it is fetching the comments area even after I've removed the only relevant statement. Theme I am using is imbalance 2.

    [ Please do not bump, that's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.