Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8383395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:09:16+00:00 2026-06-09T17:09:16+00:00

I added the Facebook comment code in to a WordPress comment <?php if (

  • 0

I added the Facebook comment code in to a WordPress comment

<?php if ( comments_open() ) : ?>
<li class="reviews_tab"><a href="#tab-reviews"><div id="fb-root">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<?php echo '<fb:comments-count href=http://bikeroger.com';
echo $_SERVER["REQUEST_URI"];
echo '></fb:comments-count> Awesome Love'; ?>
</a></li>
<br>
<?php endif; ?>

The result is what I wanted, but the styling is not.

Here’s site and a screenshot:

enter image description here

As you can see from the image.
the text for “1656 Awesome Words” is smaller than “Description” & “Additional Information”

How can I make the font sizes the same?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:09:18+00:00Added an answer on June 9, 2026 at 5:09 pm
    <?php if ( comments_open() ) : ?>
    <li class="reviews_tab"><a href="#tab-reviews"><div id="fb-root">
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <?php echo '<fb:comments-count href=http://bikeroger.com';
    echo $_SERVER["REQUEST_URI"];
    echo '></fb:comments-count> Awesome Love'; ?>
    </a></li>
    <br>
    <?php endif; ?>
    

    Above your original code…

    Below a minor alteration

    <?php if ( comments_open() ) : ?>
    <li class="reviews_tab"><a href="#tab-reviews"><div id="fb-root">
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <?php echo '<fb:comments-count href=http://bikeroger.com';
    echo $_SERVER["REQUEST_URI"];
    echo '></fb:comments-count> Awesome Love'; ?>
    </div></a></li>
    <br>
    <?php endif; ?>
    

    inside your li and a tags you open a div tag “fb-root” but you are not closing it before closing the a and li tags. Thus having a broken tag, this may or may not be part of the issue directly but having broken unclosed tags can sometimes result in adverse undesired effects.

    Also Im gonna take a wild guess and assume you have multiple div’s with the ID fb-root on your page, which may also be causing conflict. However all in all. It being in the fb-root div, the facebook styling is overriding your styling as FB loads its styling after page load. So your comment tag is inheriting its styling rather than your initial styling. Facebook through that javascript you include for it, is basically rewriting the css/style properties of all elements within the fb-root div after its loaded into the DOM.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage on which I added a facebook comments plugin. <fb:comments href=http://mywebsite.com
I have a Facebook app that is built in PHP and have added a
I've just added this snippet to my wordpress blog... <script>(function(d, s, id) { var
I added a Facebook comment box to my website a while ago. What I
I have created a business page on facebook and added application to a tab.
In my application I've added a Facebook Comment Box (on different pages, for different
I have added Facebook's like button inside the first tab of a JQuery Tools'
I've successfully added a Facebook like button to my page, using opengraph tags to
I just added a Facebook like button to my website, just the most basic
I've added a Facebook like button to my website , by following these instructions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.